From 753259e72c83c43bbbfa2e41c372b37997365aee Mon Sep 17 00:00:00 2001 From: Beverly Date: Thu, 9 Dec 2021 12:37:11 -0500 Subject: [PATCH] Show 'press to open' after face auth success When UDFPS is supported on the device, show 'press to open' message instead of 'swipe to open' since there will always be a fingerprint or unlock icon to press to enter the device for devices that support udfps. Test: manual Fixes: 209867032 Change-Id: I25b280997bc4b9e10f42e9e5882b6eec1d897ed1 --- .../systemui/statusbar/KeyguardIndicationController.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java index f43d9c350d62d..d7b4738340e6f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java @@ -887,7 +887,13 @@ public class KeyguardIndicationController { mStatusBarKeyguardViewManager.showBouncerMessage(message, mInitialTextColorState); } } else { - showBiometricMessage(mContext.getString(R.string.keyguard_unlock)); + if (mKeyguardUpdateMonitor.isUdfpsSupported() + && mKeyguardUpdateMonitor.getUserCanSkipBouncer( + KeyguardUpdateMonitor.getCurrentUser())) { + showBiometricMessage(mContext.getString(R.string.keyguard_unlock_press)); + } else { + showBiometricMessage(mContext.getString(R.string.keyguard_unlock)); + } } }