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
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user