diff options
author | Jim Miller <jaggies@google.com> | 2015-09-02 23:07:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-09-02 23:07:58 +0000 |
commit | bd5b61c489fb0543c8db29030e57189c273010eb (patch) | |
tree | 67c518d428298498cee36b035afafc4a8224e422 /services | |
parent | 90738c2a7e85cd07ac2cf3ab61246b7745c8fb80 (diff) | |
parent | 73633ddbcf285f328f9c0183dadafde24e2da2f4 (diff) | |
download | frameworks_base-bd5b61c489fb0543c8db29030e57189c273010eb.zip frameworks_base-bd5b61c489fb0543c8db29030e57189c273010eb.tar.gz frameworks_base-bd5b61c489fb0543c8db29030e57189c273010eb.tar.bz2 |
Merge "Fingerprint should throttle after 5 attempts" into mnc-dr-dev
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/fingerprint/FingerprintService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/fingerprint/FingerprintService.java b/services/core/java/com/android/server/fingerprint/FingerprintService.java index 67c9ee8..0023258 100644 --- a/services/core/java/com/android/server/fingerprint/FingerprintService.java +++ b/services/core/java/com/android/server/fingerprint/FingerprintService.java @@ -259,7 +259,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe } private boolean inLockoutMode() { - return mFailedAttempts > MAX_FAILED_ATTEMPTS; + return mFailedAttempts >= MAX_FAILED_ATTEMPTS; } private void resetFailedAttempts() { @@ -275,7 +275,7 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe private boolean handleFailedAttempt(ClientMonitor clientMonitor) { mFailedAttempts++; - if (mFailedAttempts > MAX_FAILED_ATTEMPTS) { + if (inLockoutMode()) { // Failing multiple times will continue to push out the lockout time. mHandler.removeCallbacks(mLockoutReset); mHandler.postDelayed(mLockoutReset, FAIL_LOCKOUT_TIMEOUT_MS); |