Fix a bug on updating enabled IMEs

Bug: 11354619
Change-Id: Ie33630b3dc150536bc0325ad6116ea5fdcf60740
This commit is contained in:
Satoshi Kataoka
2013-10-30 13:35:45 -07:00
parent 1630ef4fc5
commit aa4fa0ea09

View File

@@ -292,10 +292,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
// Refresh internal states in mInputMethodSettingValues to keep the latest
// "InputMethodInfo"s and "InputMethodSubtype"s
mInputMethodSettingValues.refreshAllInputMethodAndSubtypes();
// TODO: Consolidate the logic to InputMethodSettingsWrapper
InputMethodAndSubtypeUtil.loadInputMethodSubtypeList(
this, getContentResolver(),
mInputMethodSettingValues.getInputMethodList(), null);
updateInputMethodPreferenceViews();
}
@@ -437,6 +433,13 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
}
}
updateCurrentImeName();
// TODO: Consolidate the logic with InputMethodSettingsWrapper
// CAVEAT: The preference class here does not know about the default value - that is
// managed by the Input Method Manager Service, so in this case it could save the wrong
// value. Hence we must update the checkboxes here.
InputMethodAndSubtypeUtil.loadInputMethodSubtypeList(
this, getContentResolver(),
mInputMethodSettingValues.getInputMethodList(), null);
}
private void updateCurrentImeName() {