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

Commit 18dcd477 authored by Vishwath Mohan's avatar Vishwath Mohan
Browse files

Don't clear mPattern when clearing visual pattern.

This CL ensures that when clearing the lockscreen pattern in
onHandleUp(), we retain mPattern. This fixes a bug that prevents
changing from Pattern to other modalities.

Bug: 77257848
Test: Change from pattern to pin/password

Change-Id: Ied74eafd17939214c62bdd617ecef7a9974f755d
parent 68458a51
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1000,6 +1000,11 @@ public class LockPatternView extends View {
            setPatternInProgress(false);
            setPatternInProgress(false);
            cancelLineAnimations();
            cancelLineAnimations();
            notifyPatternDetected();
            notifyPatternDetected();
            // Also clear pattern if fading is enabled
            if (mFadePattern) {
                clearPatternDrawLookup();
                mPatternDisplayMode = DisplayMode.Correct;
            }
            invalidate();
            invalidate();
        }
        }
        if (PROFILE_DRAWING) {
        if (PROFILE_DRAWING) {