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

Commit 3c342cbb authored by Andy Mast's avatar Andy Mast
Browse files

Fingerprint: Reset state when client cancels

Otherwise it is possible for the service to get stuck in
a non-idle state if the current task never finishes properly.

Change-Id: I0d9d90a2dfe7a2ac78efb66cc285d29fbb89a3c0
parent 0896a709
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -274,6 +274,7 @@ public class FingerprintService extends SystemService {
        if (clientData != null) {
            if (clientData.userId != userId) throw new IllegalStateException("Bad user");
            if (mState == STATE_IDLE) return;
            mState = STATE_IDLE;
            nativeCancel();
        } else {
            Slog.w(TAG, "enrollCancel(): No listener registered");