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

Commit fe993f7d authored by Chandru S's avatar Chandru S
Browse files

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
parent 9eb05607
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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)