diff options
| -rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/BouncerScene.kt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/BouncerScene.kt b/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/BouncerScene.kt index 39287674be0e..7eb7dacda255 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/BouncerScene.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/BouncerScene.kt @@ -208,12 +208,8 @@ private fun StandardLayout( val isSplitAroundTheFoldRequired by viewModel.isFoldSplitRequired.collectAsState() val isSplitAroundTheFold = foldPosture == FoldPosture.Tabletop && !outputOnly && isSplitAroundTheFoldRequired - val currentSceneKey by - remember(isSplitAroundTheFold) { - mutableStateOf( - if (isSplitAroundTheFold) SceneKeys.SplitSceneKey else SceneKeys.ContiguousSceneKey - ) - } + val currentSceneKey = + if (isSplitAroundTheFold) SceneKeys.SplitSceneKey else SceneKeys.ContiguousSceneKey SceneTransitionLayout( currentScene = currentSceneKey, @@ -405,8 +401,7 @@ private fun UserInputArea( if (visibility == UserInputAreaVisibility.INPUT_ONLY) { PatternBouncer( viewModel = nonNullViewModel, - modifier = - Modifier.aspectRatio(1f, matchHeightConstraintsFirst = false).then(modifier) + modifier = modifier.aspectRatio(1f, matchHeightConstraintsFirst = false) ) } else -> Unit |