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

Commit 3983c16c authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Do not start auth if BIOMETRIC_STATE_CANCELLING_RESTARTING

Bug: 183442244
Test: Inspect logcat
Change-Id: Iae6889efad496dda2098df79d44839775ad6a7d8
parent 9759067e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2233,8 +2233,11 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
        if (mFaceRunningState == BIOMETRIC_STATE_CANCELLING) {
            setFaceRunningState(BIOMETRIC_STATE_CANCELLING_RESTARTING);
            return;
        } else if (mFaceRunningState == BIOMETRIC_STATE_CANCELLING_RESTARTING) {
            // Waiting for ERROR_CANCELED before requesting auth again
            return;
        }
        if (DEBUG) Log.v(TAG, "startListeningForFace()");
        if (DEBUG) Log.v(TAG, "startListeningForFace(): " + mFaceRunningState);
        int userId = getCurrentUser();
        if (isUnlockWithFacePossible(userId)) {
            if (mFaceCancelSignal != null) {