Fixed problem where Face Unlock area was showing
I introduced a bug cl https://android-git.corp.google.com/g/#/c/141926 that caused black box to hide lock pattern even when not using Face Unlock. Fixed by adding the corresponding check to make sure Face Unlock is being used. Change-Id: I9c429c99d7db4d1ab831080f23a1e10123dbfe3e
This commit is contained in:
@@ -337,7 +337,10 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
|
||||
stopAndUnbindFromFaceLock();
|
||||
|
||||
// Continue showing FaceLock area until dialer comes up
|
||||
showFaceLockAreaWithTimeout(FACELOCK_VIEW_AREA_EMERGENCY_DIALER_TIMEOUT);
|
||||
if (mLockPatternUtils.usingBiometricWeak() &&
|
||||
mLockPatternUtils.isBiometricWeakInstalled()) {
|
||||
showFaceLockAreaWithTimeout(FACELOCK_VIEW_AREA_EMERGENCY_DIALER_TIMEOUT);
|
||||
}
|
||||
|
||||
pokeWakelock(EMERGENCY_CALL_TIMEOUT);
|
||||
if (TelephonyManager.getDefault().getCallState()
|
||||
@@ -538,7 +541,10 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
|
||||
bindToFaceLock();
|
||||
// Show FaceLock area, but only for a little bit so lockpattern will become visible if
|
||||
// FaceLock fails to start or crashes
|
||||
showFaceLockAreaWithTimeout(FACELOCK_VIEW_AREA_SERVICE_TIMEOUT);
|
||||
if (mLockPatternUtils.usingBiometricWeak() &&
|
||||
mLockPatternUtils.isBiometricWeakInstalled()) {
|
||||
showFaceLockAreaWithTimeout(FACELOCK_VIEW_AREA_SERVICE_TIMEOUT);
|
||||
}
|
||||
} else {
|
||||
hideFaceLockArea();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user