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

Commit 164ff6bb authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru
Browse files

Merge into jb-mr1-dev

Change-Id: I65f9c552cf0ef2792df64c907f0a56913e6c6f30
parents fe3632bc 7641506e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -243,12 +243,16 @@ public class KeyguardHostView extends KeyguardViewBase {

        public void reportSuccessfulUnlockAttempt() {
            KeyguardUpdateMonitor.getInstance(mContext).clearFailedUnlockAttempts();
            mLockPatternUtils.reportSuccessfulPasswordAttempt();
        }

        public void reportFailedUnlockAttempt() {
            // TODO: handle biometric attempt differently.
            if (mCurrentSecuritySelection == SecurityMode.Biometric) {
                KeyguardUpdateMonitor.getInstance(mContext).reportFailedBiometricUnlockAttempt();
            } else {
                KeyguardHostView.this.reportFailedUnlockAttempt();
            }
        }

        public int getFailedAttempts() {
            return KeyguardUpdateMonitor.getInstance(mContext).getFailedUnlockAttempts();