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