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

Commit 5c0a5378 authored by Joshua Mccloskey's avatar Joshua Mccloskey
Browse files

Added lockout calls to FpAuthClient

Test: Verified a haptic occurs on fingerprint lockout.
Fixes: 203591996
Change-Id: I57f26a31cdf18c7a1d0bef4aa177524c06ab9f20
parent d1fb5a81
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -229,6 +229,7 @@ class FingerprintAuthenticationClient extends AuthenticationClient<ISession> imp

    @Override
    public void onLockoutTimed(long durationMillis) {
        super.onLockoutTimed(durationMillis);
        mLockoutCache.setLockoutModeForUser(getTargetUserId(), LockoutTracker.LOCKOUT_TIMED);
        // Lockout metrics are logged as an error code.
        final int error = BiometricFingerprintConstants.FINGERPRINT_ERROR_LOCKOUT;
@@ -246,6 +247,7 @@ class FingerprintAuthenticationClient extends AuthenticationClient<ISession> imp

    @Override
    public void onLockoutPermanent() {
        super.onLockoutPermanent();
        mLockoutCache.setLockoutModeForUser(getTargetUserId(), LockoutTracker.LOCKOUT_PERMANENT);
        // Lockout metrics are logged as an error code.
        final int error = BiometricFingerprintConstants.FINGERPRINT_ERROR_LOCKOUT_PERMANENT;