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

Commit 116eb33b authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am 164ff6bb: Merge into jb-mr1-dev

* commit '164ff6bb':
  Fix wrong password attempt count in DevicePolicyManager
parents eff02141 164ff6bb
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();