Fix BottomSheet behaviour on configuration change (regression of #457e6712)

This commit is contained in:
vfsfitvnm
2022-07-25 13:12:52 +02:00
parent 457e6712d4
commit 1d259ebaa6
3 changed files with 45 additions and 37 deletions

View File

@@ -147,7 +147,7 @@ fun PlayerView(
BottomSheet(
state = layoutState,
modifier = modifier,
onSwiped = binder.player::clearMediaItems,
onDismiss = binder.player::clearMediaItems,
collapsedContent = {
Row(
horizontalArrangement = Arrangement.spacedBy(12.dp),
@@ -315,7 +315,7 @@ fun PlayerView(
}
PlayerBottomSheet(
layoutState = rememberBottomSheetState(64.dp, layoutState.upperBound),
layoutState = rememberBottomSheetState(64.dp, layoutState.expandedBound),
isShowingLyrics = isShowingLyrics,
onShowLyrics = {
isShowingStatsForNerds = false