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

Commit 69d2f4d8 authored by Chandru S's avatar Chandru S
Browse files

Make Pin bouncer buttons focusable

Fixes: 338969289
Test: open PIN bouncer
   run adb shell input text "PIN digits"
   run adb shell input keyevent ENTER
   run adb shell input keyevent DEL
   verify expected events happen.
Flag: com.android.systemui.scene_container
Change-Id: I3b72732159a110acfde45f4c24211d4a71a90d52
parent 941e4e94
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import androidx.compose.animation.core.AnimationVector1D
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.focusable
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspectRatio
@@ -41,6 +42,8 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.geometry.CornerRadius
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.graphicsLayer
@@ -284,6 +287,8 @@ private fun PinPadButton(
        contentAlignment = Alignment.Center,
        modifier =
            modifier
                .focusRequester(FocusRequester.Default)
                .focusable()
                .sizeIn(maxWidth = pinButtonMaxSize, maxHeight = pinButtonMaxSize)
                .aspectRatio(1f)
                .drawBehind {