Add a parameter to getEnabledSubtype
Change-Id: Iaa87613086093bc83d155ed2c0113fc513898801main
parent
8aa3f5a3ad
commit
127ae5465e
|
@ -132,7 +132,8 @@ public class SubtypeSwitcher {
|
||||||
// Reload enabledSubtypes from the framework.
|
// Reload enabledSubtypes from the framework.
|
||||||
private void updateEnabledSubtypes() {
|
private void updateEnabledSubtypes() {
|
||||||
boolean foundCurrentSubtypeBecameDisabled = true;
|
boolean foundCurrentSubtypeBecameDisabled = true;
|
||||||
mAllEnabledSubtypesOfCurrentInputMethod = mImm.getEnabledInputMethodSubtypeList(null);
|
mAllEnabledSubtypesOfCurrentInputMethod = mImm.getEnabledInputMethodSubtypeList(
|
||||||
|
null, false);
|
||||||
mEnabledLanguagesOfCurrentInputMethod.clear();
|
mEnabledLanguagesOfCurrentInputMethod.clear();
|
||||||
mEnabledKeyboardSubtypesOfCurrentInputMethod.clear();
|
mEnabledKeyboardSubtypesOfCurrentInputMethod.clear();
|
||||||
for (InputMethodSubtype ims: mAllEnabledSubtypesOfCurrentInputMethod) {
|
for (InputMethodSubtype ims: mAllEnabledSubtypesOfCurrentInputMethod) {
|
||||||
|
|
|
@ -90,9 +90,9 @@ public class Utils {
|
||||||
|
|
||||||
public static boolean hasMultipleEnabledIMEsOrSubtypes(InputMethodManager imm) {
|
public static boolean hasMultipleEnabledIMEsOrSubtypes(InputMethodManager imm) {
|
||||||
return imm.getEnabledInputMethodList().size() > 1
|
return imm.getEnabledInputMethodList().size() > 1
|
||||||
// imm.getEnabledInputMethodSubtypeList(null) will return the current IME's enabled input
|
// imm.getEnabledInputMethodSubtypeList(null, false) will return the current IME's enabled
|
||||||
// method subtype (The current IME should be LatinIME.)
|
// input method subtype (The current IME should be LatinIME.)
|
||||||
|| imm.getEnabledInputMethodSubtypeList(null).size() > 1;
|
|| imm.getEnabledInputMethodSubtypeList(null, false).size() > 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* package */ static class RingCharBuffer {
|
/* package */ static class RingCharBuffer {
|
||||||
|
|
Loading…
Reference in New Issue