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

Commit 959c7edb authored by Matt Pietal's avatar Matt Pietal Committed by Android (Google) Code Review
Browse files

Merge "Fix race condition with PIN char delete" into main

parents ff6d28c6 aa1575fb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -226,6 +226,12 @@ public class PasswordTextView extends BasePasswordTextView {

    @Override
    protected void onDelete(int index) {
        if (index >= mTextChars.size()) {
            // An inconsistency was detected. The parent class deleted a char which is not present
            // in this one. call reset() to restart
            reset(false, false);
            return;
        }
        CharState charState = mTextChars.get(index);
        charState.startRemoveAnimation(0, 0);
    }