From 4d31f244244b4d0b256d9d75c7a5e6f634db6415 Mon Sep 17 00:00:00 2001 From: Beverly Date: Wed, 4 Aug 2021 15:23:13 -0400 Subject: [PATCH] Co-ex: when face fails use error string Use string "Can't recognize face. Use fingerprint instead" Only used if the user hasn't touch udfps yet Test: manual, atest KeyguardIndicationControllerTest Fixes: 195161046 Change-Id: I8206d3acbaf9e20702570c700beb6248d86a858e --- packages/SystemUI/res/values/strings.xml | 2 ++ .../systemui/statusbar/KeyguardIndicationController.java | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 04e5dd15c5c51..a67021611812f 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -438,6 +438,8 @@ Use your fingerprint to continue Can\u2019t recognize fingerprint. Use screen lock instead. + + @string/fingerprint_dialog_use_fingerprint_instead Looking for you\u2026 diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java index 3890c1aa4e4f6..503b5c0ee4b03 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java @@ -825,7 +825,11 @@ public class KeyguardIndicationController { if (mKeyguardUpdateMonitor.isUdfpsAvailable()) { // if udfps available, there will always be a tappable affordance to unlock // For example, the lock icon - showTransientIndication(R.string.keyguard_unlock_press); + if (mKeyguardBypassController.getUserHasDeviceEntryIntent()) { + showTransientIndication(R.string.keyguard_unlock_press); + } else { + showTransientIndication(R.string.keyguard_face_failed_use_fp); + } } else { showTransientIndication(R.string.keyguard_try_fingerprint); }