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

Commit 4d36295c authored by d34d's avatar d34d Committed by Gerrit Code Review
Browse files

Fingerprint: Don't start fingerprint auth in constructor

Wait until the keyguard is visible and the screen is on before
starting the fingerprint authentication.

Change-Id: Ic2cf699e57edc8152ee44f322fd1f847ada4bf03
REF: CYNGNOS-709
parent e9a7684c
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -696,6 +696,9 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
                cb.onScreenTurnedOn();
            }
        }
        if (isKeyguardVisible()) {
            startFingerAuthIfUsingFingerprint();
        }
    }

    protected void handleScreenTurnedOff(int arg1) {
@@ -809,7 +812,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
        trustManager.registerTrustListener(this);

        mLockPatternUtils = new LockPatternUtils(mContext);
        startFingerAuthIfUsingFingerprint();
    }

    private boolean isDeviceProvisionedInSettingsDb() {
@@ -1096,8 +1098,13 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
            }
        }
        // Make sure if we are not showing that we stop fingerprint authentication
        if (!isShowing && mLockPatternUtils.usingFingerprint()) {
        if (mLockPatternUtils.usingFingerprint()) {
            if (!isShowing) {
                stopAuthenticatingFingerprint();
            } else if (isScreenOn()) {
                // This handles the case when booting and screen is already on
                startFingerAuthIfUsingFingerprint();
            }
        }
    }