am e43bc7ee
: Merge "Automatically turn on "Use system language" when no subtypes become selected Bug: 3327257" into honeycomb
* commit 'e43bc7ee22a633a1ba257f5d2201e1884710b350': Automatically turn on "Use system language" when no subtypes become selected Bug: 3327257
This commit is contained in:
@@ -152,6 +152,7 @@ public class InputMethodAndSubtypeEnabler extends SettingsPreferenceFragment {
|
||||
} else {
|
||||
InputMethodAndSubtypeUtil.setSubtypesPreferenceEnabled(
|
||||
this, mInputMethodProperties, id, false);
|
||||
updateAutoSelectionCB();
|
||||
}
|
||||
}
|
||||
return super.onPreferenceTreeClick(preferenceScreen, preference);
|
||||
@@ -247,7 +248,9 @@ public class InputMethodAndSubtypeEnabler extends SettingsPreferenceFragment {
|
||||
}
|
||||
|
||||
private void setSubtypeAutoSelectionEnabled(String imiId, boolean autoSelectionEnabled) {
|
||||
mSubtypeAutoSelectionCBMap.get(imiId).setChecked(autoSelectionEnabled);
|
||||
CheckBoxPreference autoSelectionCB = mSubtypeAutoSelectionCBMap.get(imiId);
|
||||
if (autoSelectionCB == null) return;
|
||||
autoSelectionCB.setChecked(autoSelectionEnabled);
|
||||
final List<Preference> subtypePrefs = mInputMethodAndSubtypePrefsMap.get(imiId);
|
||||
for (Preference subtypePref: subtypePrefs) {
|
||||
if (subtypePref instanceof CheckBoxPreference) {
|
||||
|
Reference in New Issue
Block a user