diff options
author | satok <satok@google.com> | 2012-12-19 10:27:42 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-12-19 10:27:42 -0800 |
commit | 52ed1fdf105846e184efe1889fa0aa358ac8a181 (patch) | |
tree | a12b1303b9c2f4fc0c130f4dd6337b426d1ec9a5 /services/java/com/android/server/InputMethodManagerService.java | |
parent | cae1550e910c43508c3d0c7e2f445639c99c65ce (diff) | |
parent | 5ce0226708ec75b8636d062ae89aeb410c06659c (diff) | |
download | frameworks_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.java | 9 |
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)) { |