Suggest use fp after face-auth fail
when udfps is enrolled Test: manual Fixes: 186314172 Change-Id: Ib75a896286309207e47f8121cff76ecda6e05515
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
showSwipeUpToUnlock();
|
||||
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()) {
|
||||
|
||||
Reference in New Issue
Block a user