diff options
author | 2014-01-06 11:54:46 +0900 | |
---|---|---|
committer | 2014-01-06 11:54:46 +0900 | |
commit | b7c531b751b7c3d8e5957124654883fa2121ca1e (patch) | |
tree | 86cd4fb0ed39d3b088b7be3c768f622a20a63e43 /java | |
parent | 1e50c681af56dd77d97a1e6d463f1e3023c1a69b (diff) | |
download | latinime-b7c531b751b7c3d8e5957124654883fa2121ca1e.tar.gz latinime-b7c531b751b7c3d8e5957124654883fa2121ca1e.tar.xz latinime-b7c531b751b7c3d8e5957124654883fa2121ca1e.zip |
Update shortcut IME info before checking availability of it
Bug: 12377179
Change-Id: I4e2de78dc7e21f3f34eb56c790160b77cfc7584c
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SubtypeSwitcher.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java index 379eaaa3d..b0ab60357 100644 --- a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java +++ b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java @@ -226,6 +226,7 @@ public final class SubtypeSwitcher { } public boolean isShortcutImeEnabled() { + updateShortcutIME(); if (mShortcutInputMethodInfo == null) { return false; } @@ -237,10 +238,13 @@ public final class SubtypeSwitcher { } public boolean isShortcutImeReady() { - if (mShortcutInputMethodInfo == null) + updateShortcutIME(); + if (mShortcutInputMethodInfo == null) { return false; - if (mShortcutSubtype == null) + } + if (mShortcutSubtype == null) { return true; + } if (mShortcutSubtype.containsExtraValueKey(REQ_NETWORK_CONNECTIVITY)) { return mIsNetworkConnected; } |