summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2015-02-09 16:38:42 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-09 16:38:42 +0000
commitfc7e8f0b024ab119e7b06e5d3b6d5a1f4e00edba (patch)
tree2c21e85b953ff0b711f1509a8b255a6bd54e3d68 /packages/Keyguard
parent75a10fe80778f4ac31caaf33ef2c052a391869c9 (diff)
parent270496ef13b6baba1f0749d8c282262b021ff18e (diff)
downloadframeworks_base-fc7e8f0b024ab119e7b06e5d3b6d5a1f4e00edba.zip
frameworks_base-fc7e8f0b024ab119e7b06e5d3b6d5a1f4e00edba.tar.gz
frameworks_base-fc7e8f0b024ab119e7b06e5d3b6d5a1f4e00edba.tar.bz2
am 270496ef: am 4e4c37a2: am 991db77a: Only request IME if password view is showing
* commit '270496ef13b6baba1f0749d8c282262b021ff18e': Only request IME if password view is showing
Diffstat (limited to 'packages/Keyguard')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java8
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);
+ }
}
}
});