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

Commit 3a681a32 authored by Tony Mak's avatar Tony Mak Committed by android-build-merger
Browse files

Merge \"Should not report unsuccessful attempt if pattern size < minimal size\" into nyc-mr1-dev

am: 9d83a9fb

Change-Id: I1f9f254baebab5b14fe298791e11887dbd4220c6
parents 1fd447e7 9d83a9fb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -461,7 +461,8 @@ public class ConfirmLockPattern extends ConfirmDeviceCredentialBaseActivity {
            private void startCheckPattern(final List<LockPatternView.Cell> pattern,
                    final Intent intent) {
                if (pattern.size() < LockPatternUtils.MIN_PATTERN_REGISTER_FAIL) {
                    mCredentialCheckResultTracker.setResult(false, intent, 0, mEffectiveUserId);
                    // Pattern size is less than the minimum, do not count it as an fail attempt.
                    onPatternChecked(false, intent, 0, mEffectiveUserId, false /* newResult */);
                    return;
                }