diff options
| author | 2024-09-10 01:39:20 +0000 | |
|---|---|---|
| committer | 2024-09-10 01:41:54 +0000 | |
| commit | fe993f7d33e975a490e4dc9e4cd728944cd2d97c (patch) | |
| tree | aa9e4cdd76186dca1f673edebf71578a458173c5 | |
| parent | 9eb05607c7d6d0ceb6bb33cf95041683d9b3da66 (diff) | |
Fix issue with PIN output content not center aligned as expected.
Before this all the dots were left aligned.
Fixes: 365648186
Test: turn on flexiglass
1. Set PIN bouncer
2. Enter pin digits and see the dots are horizontally centered
3. disable flexiglass and enable compose_bouncer and verify the same
Flag: com.android.systemui.scene_container
Flag: com.android.systemui.compose_bouncer
Change-Id: Ib9cde15b0f2d3adc670360029648c6b6bcd1ff8b
| -rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/PinInputDisplay.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/PinInputDisplay.kt b/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/PinInputDisplay.kt index ba885f7da2cf..1f98cd8e07c0 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/PinInputDisplay.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/PinInputDisplay.kt @@ -65,7 +65,6 @@ import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.Constraints import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp -import androidx.compose.ui.window.Dialog import androidx.lifecycle.compose.collectAsStateWithLifecycle import com.android.compose.PlatformOutlinedButton import com.android.compose.animation.Easings @@ -355,7 +354,10 @@ private class PinInputRow( fun Content(modifier: Modifier) { // Wrap PIN entry in a Box so it is visible to accessibility (even if empty). - Box(modifier = modifier.fillMaxWidth().wrapContentHeight()) { + Box( + modifier = modifier.fillMaxWidth().wrapContentHeight(), + contentAlignment = Alignment.Center, + ) { Row( modifier .heightIn(min = shapeAnimations.shapeSize) |