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

Commit 99b8820f authored by Vineeta Srivastava's avatar Vineeta Srivastava
Browse files

Use fingerid 0 when checking failed attempts.

It is valid to have finger id as Hex value which is not necessarily less than 0.
Always compare with finger id 0 to make sure we are not locking out user.

Bug: 22354158
Change-Id: I19ded12ae4ee335621fd278163c652fc154be6cf
parent 8f596907
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
            } else {
                result = true; // client not listening
	    }
            if (fpId <= 0) {
	    if (fpId == 0) {
                FingerprintUtils.vibrateFingerprintError(getContext());
                result |= handleFailedAttempt(this);
            } else {