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

This reverts commit 3ce118c58c.

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
This commit is contained in:
Charles Chen
2021-06-04 14:26:06 +00:00
parent 3ce118c58c
commit 105f6dddf1

View File

@@ -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();
}
}