Improve MediaViewerBottomBar usage.
This commit is contained in:
parent
667e0da3a2
commit
2c226c8de0
1 changed files with 11 additions and 11 deletions
|
|
@ -233,17 +233,17 @@ fun MediaViewerView(
|
||||||
isUserSelected = (state.listData[page] as? MediaViewerPageData.MediaViewerData)?.eventId == state.initiallySelectedEventId,
|
isUserSelected = (state.listData[page] as? MediaViewerPageData.MediaViewerData)?.eventId == state.initiallySelectedEventId,
|
||||||
)
|
)
|
||||||
// Bottom bar
|
// Bottom bar
|
||||||
AnimatedVisibility(visible = showOverlay, enter = fadeIn(), exit = fadeOut()) {
|
AnimatedVisibility(
|
||||||
Box(
|
visible = showOverlay,
|
||||||
modifier = Modifier.fillMaxSize()
|
enter = fadeIn(),
|
||||||
) {
|
exit = fadeOut(),
|
||||||
MediaViewerBottomBar(
|
modifier = Modifier.align(Alignment.BottomCenter),
|
||||||
modifier = Modifier.align(Alignment.BottomCenter),
|
) {
|
||||||
showDivider = dataForPage.mediaInfo.mimeType.isMimeTypeVideo(),
|
MediaViewerBottomBar(
|
||||||
caption = dataForPage.mediaInfo.caption,
|
showDivider = dataForPage.mediaInfo.mimeType.isMimeTypeVideo(),
|
||||||
onHeightChange = { bottomPaddingInPixels = it },
|
caption = dataForPage.mediaInfo.caption,
|
||||||
)
|
onHeightChange = { bottomPaddingInPixels = it },
|
||||||
}
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue