summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/InputMethodManagerService.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-12-19 10:27:42 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-19 10:27:42 -0800
commit52ed1fdf105846e184efe1889fa0aa358ac8a181 (patch)
treea12b1303b9c2f4fc0c130f4dd6337b426d1ec9a5 /services/java/com/android/server/InputMethodManagerService.java
parentcae1550e910c43508c3d0c7e2f445639c99c65ce (diff)
parent5ce0226708ec75b8636d062ae89aeb410c06659c (diff)
downloadframeworks_base-52ed1fdf105846e184efe1889fa0aa358ac8a181.zip
frameworks_base-52ed1fdf105846e184efe1889fa0aa358ac8a181.tar.gz
frameworks_base-52ed1fdf105846e184efe1889fa0aa358ac8a181.tar.bz2
am 5ce02267: am 7ad7b2c4: am 32b81205: Fix a bug where disabled auxilialy IME is unexpectedly re-enabled
* commit '5ce0226708ec75b8636d062ae89aeb410c06659c': Fix a bug where disabled auxilialy IME is unexpectedly re-enabled
Diffstat (limited to 'services/java/com/android/server/InputMethodManagerService.java')
-rw-r--r--services/java/com/android/server/InputMethodManagerService.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java
index 91ac1de..81ae101 100644
--- a/services/java/com/android/server/InputMethodManagerService.java
+++ b/services/java/com/android/server/InputMethodManagerService.java
@@ -782,6 +782,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
if (!isSystemIme(imi)) {
return false;
}
+ if (imi.isAuxiliaryIme()) {
+ return false;
+ }
if (imi.getIsDefaultResourceId() != 0) {
try {
Resources res = context.createPackageContext(
@@ -805,6 +808,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
if (!isSystemIme(imi)) {
return false;
}
+ if (imi.isAuxiliaryIme()) {
+ return false;
+ }
return containsSubtypeOf(imi, ENGLISH_LOCALE.getLanguage());
}
@@ -2858,6 +2864,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
List<Pair<String, ArrayList<String>>> enabledInputMethodsList = mSettings
.getEnabledInputMethodsAndSubtypeListLocked();
+ if (DEBUG) {
+ Slog.d(TAG, (enabled ? "Enable " : "Disable ") + id);
+ }
if (enabled) {
for (Pair<String, ArrayList<String>> pair: enabledInputMethodsList) {
if (pair.first.equals(id)) {