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

Commit 231d303e authored by Brad Hinegardner's avatar Brad Hinegardner
Browse files

Allow Shortcuts to be vertically unbounded

When the indication area was vertically small
the shortcuts were squished. This is not beneficial
as the shortcuts always have space above them.

Fixes: 440650194
Test: manual, foldable rotated
Flag: com.android.systemui.scene_container
Change-Id: I62f7e1bfe9e93745766502746a66331e9f7dfaf0
parent 8a263bad
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
@@ -79,7 +80,9 @@ constructor(
                            ),
                ) {
                    Box(
                        Modifier.graphicsLayer { translationX = viewModel.unfoldTranslations.start }
                        Modifier
                            .graphicsLayer { translationX = viewModel.unfoldTranslations.start }
                            .wrapContentHeight(Alignment.Bottom, unbounded = true),
                    ) {
                        LockscreenElement(Shortcuts.Start, context, Modifier)
                    }
@@ -89,7 +92,9 @@ constructor(
                    }

                    Box(
                        Modifier.graphicsLayer { translationX = viewModel.unfoldTranslations.end }
                        Modifier
                            .graphicsLayer { translationX = viewModel.unfoldTranslations.end }
                            .wrapContentHeight(Alignment.Bottom, unbounded = true),
                    ) {
                        LockscreenElement(Shortcuts.End, context, Modifier)
                    }