summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-12-15 13:46:46 +0900
committersatok <satok@google.com>2010-12-15 13:46:46 +0900
commit07e7279cb45ebc150b55bb7e0882d19c1e71bfbf (patch)
treef6f8815e4c79f9b302dfa4266681e8d5fc286929 /packages
parent6cb3b52df4f2ec4cc5f361886377657986e9dd19 (diff)
downloadframeworks_base-07e7279cb45ebc150b55bb7e0882d19c1e71bfbf.zip
frameworks_base-07e7279cb45ebc150b55bb7e0882d19c1e71bfbf.tar.gz
frameworks_base-07e7279cb45ebc150b55bb7e0882d19c1e71bfbf.tar.bz2
Fix the bug that IME switch button is shown when there are two IME is installed but only one IME is enabled.
Bug: 3286682 Change-Id: I6a9c6972c136ca8df85ab2b305d08120c09a4543
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java
index aa431bc..ddce6bf 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java
@@ -162,7 +162,7 @@ public class InputMethodButton extends ImageView {
// * There are no explicitly enabled (by the user) subtypes of the IME, or the IME doesn't have
// its subtypes at all
private boolean needsToShowIMEButton() {
- List<InputMethodInfo> imis = mImm.getInputMethodList();
+ List<InputMethodInfo> imis = mImm.getEnabledInputMethodList();
final int size = imis.size();
return size > 1
|| (size == 1 && mImm.getEnabledInputMethodSubtypeList(imis.get(0)).size() > 1);