am 4e4c37a2: am 991db77a: Only request IME if password view is showing

* commit '4e4c37a2da064cf0d4bbd508a186a6c44563d966':
  Only request IME if password view is showing
This commit is contained in:
Adrian Roos
2015-02-09 16:30:40 +00:00
committed by Android Git Automerger

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