Only request IME if password view is showing

Bug: 19250277
Change-Id: I881b08ebc6900ba43289b772ed0d039dbb62149c
This commit is contained in:
Adrian Roos
2015-02-06 14:30:46 +01:00
parent 07c745b525
commit 991db77a44

View File

@@ -90,9 +90,11 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView
post(new Runnable() {
@Override
public void run() {
mPasswordEntry.requestFocus();
if (reason != KeyguardSecurityView.SCREEN_ON || mShowImeAtScreenOn) {
mImm.showSoftInput(mPasswordEntry, InputMethodManager.SHOW_IMPLICIT);
if (isShown()) {
mPasswordEntry.requestFocus();
if (reason != KeyguardSecurityView.SCREEN_ON || mShowImeAtScreenOn) {
mImm.showSoftInput(mPasswordEntry, InputMethodManager.SHOW_IMPLICIT);
}
}
}
});