Merge "Unlock icon regardless of transient error" into qt-r1-dev

This commit is contained in:
Kevin Chyn
2019-06-18 03:48:03 +00:00
committed by Android (Google) Code Review

View File

@@ -420,10 +420,10 @@ public class LockIcon extends KeyguardAffordanceView implements OnUserInfoChange
private int getState() { private int getState() {
KeyguardUpdateMonitor updateMonitor = KeyguardUpdateMonitor.getInstance(mContext); KeyguardUpdateMonitor updateMonitor = KeyguardUpdateMonitor.getInstance(mContext);
if (mTransientBiometricsError) { if ((mUnlockMethodCache.canSkipBouncer() || !mKeyguardShowing) && !mSimLocked) {
return STATE_BIOMETRICS_ERROR;
} else if ((mUnlockMethodCache.canSkipBouncer() || !mKeyguardShowing) && !mSimLocked) {
return STATE_LOCK_OPEN; return STATE_LOCK_OPEN;
} else if (mTransientBiometricsError) {
return STATE_BIOMETRICS_ERROR;
} else if (updateMonitor.isFaceDetectionRunning()) { } else if (updateMonitor.isFaceDetectionRunning()) {
return STATE_SCANNING_FACE; return STATE_SCANNING_FACE;
} else { } else {