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

Commit fb6f8b4f authored by Thiemo Nagel's avatar Thiemo Nagel Committed by Android (Google) Code Review
Browse files

Merge "Remove unsed failedAttemptWarning in reportFailedUnlockAttempt()."

parents 17e11fad 116387c6
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -266,9 +266,6 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
        final int failedAttemptsBeforeWipe =
                dpm.getMaximumFailedPasswordsForWipe(null, currentUser);

        final int failedAttemptWarning = LockPatternUtils.FAILED_ATTEMPTS_BEFORE_RESET
                - LockPatternUtils.FAILED_ATTEMPTS_BEFORE_TIMEOUT;

        final int remainingBeforeWipe = failedAttemptsBeforeWipe > 0 ?
                (failedAttemptsBeforeWipe - failedAttempts)
                : Integer.MAX_VALUE; // because DPM returns 0 if no restriction