diff options
author | Adrian Roos <roosa@google.com> | 2015-02-09 16:07:32 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-09 16:07:32 +0000 |
commit | 4e4c37a2da064cf0d4bbd508a186a6c44563d966 (patch) | |
tree | 6cf5503eca83fe0187a0cac7894b823e9f7b27bc /packages/Keyguard | |
parent | fba2dcc023c9fb5d215fb66528d7d9d69ba80971 (diff) | |
parent | 991db77a44f3352a8cf6351f79cad67bf955e4e4 (diff) | |
download | frameworks_base-4e4c37a2da064cf0d4bbd508a186a6c44563d966.zip frameworks_base-4e4c37a2da064cf0d4bbd508a186a6c44563d966.tar.gz frameworks_base-4e4c37a2da064cf0d4bbd508a186a6c44563d966.tar.bz2 |
am 991db77a: Only request IME if password view is showing
* commit '991db77a44f3352a8cf6351f79cad67bf955e4e4':
Only request IME if password view is showing
Diffstat (limited to 'packages/Keyguard')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java index dfea166..845d53a 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java @@ -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); + } } } }); |