Fix a bug on updating enabled IMEs
Bug: 11354619 Change-Id: Ie33630b3dc150536bc0325ad6116ea5fdcf60740
This commit is contained in:
@@ -292,10 +292,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
|
|||||||
// Refresh internal states in mInputMethodSettingValues to keep the latest
|
// Refresh internal states in mInputMethodSettingValues to keep the latest
|
||||||
// "InputMethodInfo"s and "InputMethodSubtype"s
|
// "InputMethodInfo"s and "InputMethodSubtype"s
|
||||||
mInputMethodSettingValues.refreshAllInputMethodAndSubtypes();
|
mInputMethodSettingValues.refreshAllInputMethodAndSubtypes();
|
||||||
// TODO: Consolidate the logic to InputMethodSettingsWrapper
|
|
||||||
InputMethodAndSubtypeUtil.loadInputMethodSubtypeList(
|
|
||||||
this, getContentResolver(),
|
|
||||||
mInputMethodSettingValues.getInputMethodList(), null);
|
|
||||||
updateInputMethodPreferenceViews();
|
updateInputMethodPreferenceViews();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -437,6 +433,13 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateCurrentImeName();
|
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() {
|
private void updateCurrentImeName() {
|
||||||
|
Reference in New Issue
Block a user