Merge changes from topic "lockoutreset" into rvc-dev am: 8838c087b0
Change-Id: Ibb50dcf231c0f20f07933763b70237029506c122
This commit is contained in:
@@ -978,6 +978,10 @@ public abstract class BiometricServiceBase extends SystemService
|
||||
}
|
||||
|
||||
protected void addLockoutResetCallback(IBiometricServiceLockoutResetCallback callback) {
|
||||
if (callback == null) {
|
||||
Slog.w(getTag(), "Null LockoutResetCallback");
|
||||
return;
|
||||
}
|
||||
mHandler.post(() -> {
|
||||
final LockoutResetMonitor monitor = new LockoutResetMonitor(callback);
|
||||
if (!mLockoutMonitors.contains(monitor)) {
|
||||
|
||||
@@ -330,6 +330,7 @@ public class FingerprintService extends BiometricServiceBase {
|
||||
@Override
|
||||
public void addLockoutResetCallback(final IBiometricServiceLockoutResetCallback callback)
|
||||
throws RemoteException {
|
||||
checkPermission(USE_BIOMETRIC_INTERNAL);
|
||||
FingerprintService.super.addLockoutResetCallback(callback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user