Merge "Show "use fingerprint to open" msg for coex" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c2e4423c8f
@@ -885,7 +885,10 @@ public class KeyguardIndicationController {
|
|||||||
mStatusBarKeyguardViewManager.showBouncerMessage(helpString,
|
mStatusBarKeyguardViewManager.showBouncerMessage(helpString,
|
||||||
mInitialTextColorState);
|
mInitialTextColorState);
|
||||||
} else if (mKeyguardUpdateMonitor.isScreenOn()) {
|
} else if (mKeyguardUpdateMonitor.isScreenOn()) {
|
||||||
if (biometricSourceType == BiometricSourceType.FACE && shouldSuppressFaceMsg()) {
|
if (biometricSourceType == BiometricSourceType.FACE
|
||||||
|
&& shouldSuppressFaceMsgAndShowTryFingerprintMsg()) {
|
||||||
|
// suggest trying fingerprint
|
||||||
|
showTransientIndication(R.string.keyguard_try_fingerprint);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
showTransientIndication(helpString, false /* isError */, showSwipeToUnlock);
|
showTransientIndication(helpString, false /* isError */, showSwipeToUnlock);
|
||||||
@@ -903,9 +906,11 @@ public class KeyguardIndicationController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (biometricSourceType == BiometricSourceType.FACE
|
if (biometricSourceType == BiometricSourceType.FACE
|
||||||
&& shouldSuppressFaceMsg()
|
&& shouldSuppressFaceMsgAndShowTryFingerprintMsg()
|
||||||
&& !mStatusBarKeyguardViewManager.isBouncerShowing()
|
&& !mStatusBarKeyguardViewManager.isBouncerShowing()
|
||||||
&& mKeyguardUpdateMonitor.isScreenOn()) {
|
&& mKeyguardUpdateMonitor.isScreenOn()) {
|
||||||
|
// suggest trying fingerprint
|
||||||
|
showTransientIndication(R.string.keyguard_try_fingerprint);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (msgId == FaceManager.FACE_ERROR_TIMEOUT) {
|
if (msgId == FaceManager.FACE_ERROR_TIMEOUT) {
|
||||||
@@ -956,7 +961,7 @@ public class KeyguardIndicationController {
|
|||||||
|| msgId == FingerprintManager.FINGERPRINT_ERROR_USER_CANCELED);
|
|| msgId == FingerprintManager.FINGERPRINT_ERROR_USER_CANCELED);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean shouldSuppressFaceMsg() {
|
private boolean shouldSuppressFaceMsgAndShowTryFingerprintMsg() {
|
||||||
// For dual biometric, don't show face auth messages
|
// For dual biometric, don't show face auth messages
|
||||||
return mKeyguardUpdateMonitor.isFingerprintDetectionRunning()
|
return mKeyguardUpdateMonitor.isFingerprintDetectionRunning()
|
||||||
&& mKeyguardUpdateMonitor.isUnlockingWithBiometricAllowed(
|
&& mKeyguardUpdateMonitor.isUnlockingWithBiometricAllowed(
|
||||||
|
|||||||
Reference in New Issue
Block a user