Merge "Don't request PIN field focus again unless re-enabled" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e85e15137c
@@ -62,9 +62,10 @@ public abstract class KeyguardPinBasedInputView extends KeyguardAbsKeyInputView
|
||||
|
||||
@Override
|
||||
protected void setPasswordEntryEnabled(boolean enabled) {
|
||||
boolean wasEnabled = mPasswordEntry.isEnabled();
|
||||
mPasswordEntry.setEnabled(enabled);
|
||||
mOkButton.setEnabled(enabled);
|
||||
if (enabled && !mPasswordEntry.hasFocus()) {
|
||||
if (enabled && !wasEnabled && !mPasswordEntry.hasFocus()) {
|
||||
mPasswordEntry.requestFocus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user