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

Commit 105f6ddd authored by Charles Chen's avatar Charles Chen
Browse files

Revert "Don't request PIN field focus again unless re-enabled"

This reverts commit 3ce118c5.

Reason for revert: The culprit candicate CL of b/190128793. Not that this revert is just to verify if it is the real culprit of b/190128793. Doesn't mean it must be reverted
Bug: b/190128793

Change-Id: Ibd580df35590ecf0c75f6004db900b9d4aafb03a
parent 3ce118c5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -62,10 +62,9 @@ public abstract class KeyguardPinBasedInputView extends KeyguardAbsKeyInputView

    @Override
    protected void setPasswordEntryEnabled(boolean enabled) {
        boolean wasEnabled = mPasswordEntry.isEnabled();
        mPasswordEntry.setEnabled(enabled);
        mOkButton.setEnabled(enabled);
        if (enabled && !wasEnabled && !mPasswordEntry.hasFocus()) {
        if (enabled && !mPasswordEntry.hasFocus()) {
            mPasswordEntry.requestFocus();
        }
    }