Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ce6882b authored by Brian Colonna's avatar Brian Colonna
Browse files

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
parent 3505abf3
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -337,7 +337,10 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
                stopAndUnbindFromFaceLock();

                // Continue showing FaceLock area until dialer comes up
                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
            if (mLockPatternUtils.usingBiometricWeak() &&
                    mLockPatternUtils.isBiometricWeakInstalled()) {
                showFaceLockAreaWithTimeout(FACELOCK_VIEW_AREA_SERVICE_TIMEOUT);
            }
        } else {
            hideFaceLockArea();
        }