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

Commit 15fd4f9c authored by jie.liu's avatar jie.liu Committed by Gerrit Code Review
Browse files

Properly animate SIM PIN entry screen transition.

Currently, in the MSIM case, the transition between the PIN entry
screens of SIM1 and SIM2 isn't animated, leading to subpar UX. Fix this
by clearing the previously entered PIN of SIM1 in an animated way when
switching to the SIM2 PIN screen.

Change-Id: I7cb6c19590817c47950403e3022d770655ddd2ac
parent 53445ef7
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -66,8 +66,12 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout
    }
    }


    public void reset() {
    public void reset() {
        reset(false);
    }

    protected void reset(boolean animateTransition) {
        // start fresh
        // start fresh
        resetPasswordText(false /* animate */);
        resetPasswordText(animateTransition);
        // if the user is currently locked out, enforce it.
        // if the user is currently locked out, enforce it.
        long deadline = mLockPatternUtils.getLockoutAttemptDeadline();
        long deadline = mLockPatternUtils.getLockoutAttemptDeadline();
        if (shouldLockout(deadline)) {
        if (shouldLockout(deadline)) {
+2 −1
Original line number Original line Diff line number Diff line
@@ -267,7 +267,8 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
        mKgUpdateMonitor.reportSimUnlocked(mSubId);
        mKgUpdateMonitor.reportSimUnlocked(mSubId);
        mCallback.dismiss(true);
        mCallback.dismiss(true);
        mShowDefaultMessage = true;
        mShowDefaultMessage = true;
        reset();
        // Animate the transition in case we have a second PIN to enter
        reset(true);
    }
    }


    @Override
    @Override