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

Commit 4a702673 authored by Jim Miller's avatar Jim Miller
Browse files

Fix fingerprint navigation after entering lockout.

The code was leaving the fingerprint driver in an authenticating state,
which means the sensor will continue looking for a fingerprint and
not enter navigation mode. The fix stops fingerprint when we
detect the lockout state.

Test: manual

Fixes bug 36103875

Change-Id: Ic8dc04e0acb731e19a5f4c6824a61c80bdbbb2c4
parent b0c2ed63
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -83,6 +83,7 @@ public abstract class AuthenticationClient extends ClientMonitor {
            if (inLockoutMode) {
                try {
                    Slog.w(TAG, "Forcing lockout (fp driver code should do this!)");
                    stop(false); // cancel fingerprint authentication
                    receiver.onError(getHalDeviceId(),
                            FingerprintManager.FINGERPRINT_ERROR_LOCKOUT, 0 /* vendorCode */);
                } catch (RemoteException e) {