From 07e7279cb45ebc150b55bb7e0882d19c1e71bfbf Mon Sep 17 00:00:00 2001 From: satok Date: Wed, 15 Dec 2010 13:46:46 +0900 Subject: 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 --- .../src/com/android/systemui/statusbar/tablet/InputMethodButton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 aa431bcaa5bc..ddce6bf83b9b 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 imis = mImm.getInputMethodList(); + List imis = mImm.getEnabledInputMethodList(); final int size = imis.size(); return size > 1 || (size == 1 && mImm.getEnabledInputMethodSubtypeList(imis.get(0)).size() > 1); -- cgit v1.2.3-59-g8ed1b