Fix detekt issues.
This commit is contained in:
parent
447a4d0700
commit
01c4a10ab9
2 changed files with 6 additions and 4 deletions
|
|
@ -25,6 +25,7 @@ import androidx.compose.runtime.remember
|
||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.draw.clip
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.text.style.TextAlign
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
|
|
@ -73,12 +74,13 @@ fun MediaPlayerControllerView(
|
||||||
}
|
}
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.clickable { onTogglePlay() }
|
|
||||||
.size(36.dp)
|
.size(36.dp)
|
||||||
.background(
|
.background(
|
||||||
color = bgColor,
|
color = bgColor,
|
||||||
shape = CircleShape,
|
shape = CircleShape,
|
||||||
)
|
)
|
||||||
|
.clip(CircleShape)
|
||||||
|
.clickable { onTogglePlay() }
|
||||||
.padding(8.dp),
|
.padding(8.dp),
|
||||||
contentAlignment = Alignment.Center,
|
contentAlignment = Alignment.Center,
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ fun MediaViewerView(
|
||||||
canShare = state.canShare,
|
canShare = state.canShare,
|
||||||
mimeType = state.mediaInfo.mimeType,
|
mimeType = state.mediaInfo.mimeType,
|
||||||
caption = state.mediaInfo.caption,
|
caption = state.mediaInfo.caption,
|
||||||
onHeightChanged = { bottomPaddingInPixels = it },
|
onHeightChange = { bottomPaddingInPixels = it },
|
||||||
eventSink = state.eventSink
|
eventSink = state.eventSink
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -325,7 +325,7 @@ private fun MediaViewerBottomBar(
|
||||||
canShare: Boolean,
|
canShare: Boolean,
|
||||||
mimeType: String,
|
mimeType: String,
|
||||||
caption: String?,
|
caption: String?,
|
||||||
onHeightChanged: (Int) -> Unit,
|
onHeightChange: (Int) -> Unit,
|
||||||
eventSink: (MediaViewerEvents) -> Unit,
|
eventSink: (MediaViewerEvents) -> Unit,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
|
|
@ -334,7 +334,7 @@ private fun MediaViewerBottomBar(
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.background(Color(0x99101317))
|
.background(Color(0x99101317))
|
||||||
.onSizeChanged {
|
.onSizeChanged {
|
||||||
onHeightChanged(it.height)
|
onHeightChange(it.height)
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
HorizontalDivider()
|
HorizontalDivider()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue