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

Commit c25d5460 authored by Bill Rassieur's avatar Bill Rassieur Committed by Android (Google) Code Review
Browse files

Merge "Fix jank: Don't write lockout deadline if not needed" into mnc-dr-dev

parents 86e153d5 e3e6d56b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1074,7 +1074,7 @@ public class LockPatternUtils {
        long deadline = getLong(LOCKOUT_ATTEMPT_DEADLINE, 0L, userId);
        final long timeoutMs = getLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, 0L, userId);
        final long now = SystemClock.elapsedRealtime();
        if (deadline < now) {
        if (deadline < now && deadline != 0) {
            // timeout expired
            setLong(LOCKOUT_ATTEMPT_DEADLINE, 0, userId);
            setLong(LOCKOUT_ATTEMPT_TIMEOUT_MS, 0, userId);