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

@@ -216,9 +216,9 @@ class MainActivity : ComponentActivity() {
when (val uri = uri) {
null -> {
val playerBottomSheetState = rememberBottomSheetState(
lowerBound = 0.dp,
dismissedBound = 0.dp,
collapsedBound = Dimensions.collapsedPlayer,
upperBound = maxHeight,
expandedBound = maxHeight,
isExpanded = expandPlayerBottomSheet
)