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

Commit 10ad3c10 authored by Yunke Zhou's avatar Yunke Zhou
Browse files

[Flexiglass] Fix the password bouncer alignment issue

Align the password bouncer in the center vertically in
BesideUserSwitcherLayout. Updated screenshots in the bug.

Bug: 413303536
Test: Enable flexiglass and verify the bouncer on desktop.
Flag: com.android.systemui.scene_container

Change-Id: Ib2f80902277389ec4cb6d000cbf5d26180e98ecf
parent 4b7b5398
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -99,6 +99,7 @@ import com.android.compose.animation.scene.SceneKey
import com.android.compose.animation.scene.SceneTransitionLayout
import com.android.compose.animation.scene.rememberMutableSceneTransitionLayoutState
import com.android.compose.animation.scene.transitions
import com.android.compose.modifiers.thenIf
import com.android.compose.windowsizeclass.LocalWindowSizeClass
import com.android.systemui.bouncer.shared.model.BouncerActionButtonModel
import com.android.systemui.bouncer.ui.BouncerDialogFactory
@@ -509,7 +510,11 @@ private fun BesideUserSwitcherLayout(
            aboveFold = {
                Column(
                    horizontalAlignment = Alignment.CenterHorizontally,
                    modifier = Modifier.fillMaxWidth(),
                    verticalArrangement = Arrangement.Center,
                    modifier =
                        Modifier.fillMaxWidth().thenIf(authMethod is PasswordBouncerViewModel) {
                            Modifier.fillMaxHeight()
                        },
                ) {
                    StatusMessage(viewModel = viewModel.message)
                    OutputArea(
@@ -633,14 +638,9 @@ private fun ContentScope.FoldableScene(
        // Content above the fold, when split on a foldable device in a "table top" posture:
        Box(
            modifier =
                Modifier.element(SceneElements.AboveFold)
                    .then(
                        if (isSplit) {
                Modifier.element(SceneElements.AboveFold).thenIf(isSplit) {
                    Modifier.weight(splitRatio)
                        } else {
                            Modifier
                }
                    )
        ) {
            aboveFold()
        }