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

Commit b8a49582 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Suggest use fp after face-auth fail

when udfps is enrolled

Test: manual
Fixes: 186314172
Change-Id: Ib75a896286309207e47f8121cff76ecda6e05515
parent 4656cb02
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2971,4 +2971,7 @@
    <!-- Accessibility action for tapping on an affordance on an unlocked lock screen (ie: "Double
     tap to enter device") [CHAR LIMIT=NONE] -->
    <string name="accessibility_enter_hint">enter device</string>
    <!-- Message shown to suggest authentication using [CHAR LIMIT=60]-->
    <string name="keyguard_try_fingerprint">Use fingerprint to open</string>

</resources>
+8 −1
Original line number Diff line number Diff line
@@ -888,7 +888,14 @@ public class KeyguardIndicationController implements KeyguardStateController.Cal
            if (msgId == FaceManager.FACE_ERROR_TIMEOUT) {
                // The face timeout message is not very actionable, let's ask the user to
                // manually retry.
                if (!mStatusBarKeyguardViewManager.isBouncerShowing()
                        && mKeyguardUpdateMonitor.isUdfpsEnrolled()) {
                    // suggest trying fingerprint
                    showTransientIndication(R.string.keyguard_try_fingerprint);
                } else {
                    // suggest swiping up to unlock (try face auth again or swipe up to bouncer)
                    showSwipeUpToUnlock();
                }
            } else if (mStatusBarKeyguardViewManager.isBouncerShowing()) {
                mStatusBarKeyguardViewManager.showBouncerMessage(errString, mInitialTextColorState);
            } else if (mKeyguardUpdateMonitor.isScreenOn()) {