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
This commit is contained in:
Beverly
2021-12-09 12:37:11 -05:00
parent aebceb0325
commit 753259e72c

View File

@@ -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));
}
}
}