commit | c0e4522bace31320ec58cc665c17bcba4b1161e0 | [log] [tgz] |
---|---|---|
author | Tim Zimmermann <tim@linux4.de> | Sun Jun 16 13:12:56 2024 +0200 |
committer | Tim Zimmermann <tim@linux4.de> | Sun Jun 16 15:21:52 2024 +0200 |
tree | 992b478ef0cddeb103aebb421ccf63bb6a88f300 | |
parent | e5ef93dd6fd964eff7b4169e67c76fd4e9e78855 [diff] |
fixup! base: Add support for disabling fingerprint lockout [1/2] Change-Id: I7011fbc607bdd30d228dbe47d46be6b4fb0d88d7
diff --git a/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/LockoutFrameworkImpl.java b/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/LockoutFrameworkImpl.java index b2ce2bc..f54ed05 100644 --- a/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/LockoutFrameworkImpl.java +++ b/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/LockoutFrameworkImpl.java
@@ -71,6 +71,7 @@ void onLockoutReset(int userId); } + private final Context mContext; private final LockoutResetCallback mLockoutResetCallback; private final SparseBooleanArray mTimedLockoutCleared; private final SparseIntArray mFailedAttempts; @@ -101,6 +102,7 @@ @NonNull LockoutResetCallback lockoutResetCallback, @NonNull Function<Integer, PendingIntent> lockoutResetIntent, @Nullable Handler handler) { + mContext = context; mLockoutResetCallback = lockoutResetCallback; mTimedLockoutCleared = new SparseBooleanArray(); mFailedAttempts = new SparseIntArray();