Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34c3ed3e authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

[flexiglass] Addresses a couple of comments in BouncerScene.

Bug: 309524547
Flag: ACONFIG com.systemui.scene_container DEVELOPMENT
Test: manually verified that pattern and PIN bouncers still work as
intended when half folded or fully unfolded

Change-Id: Ie41c413e28a26e096503f4104ce8adba7c06f498
parent 0331eb80
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -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(
    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