Fix the title of the fragments of the personal dictionary settings
Bug: 8600958 Change-Id: I9b8bab21b144385bc2386e7fcb67e1c197f84113
This commit is contained in:
@@ -199,10 +199,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
|
||||
// not present or disabled. In this case we need to remove the preference.
|
||||
getPreferenceScreen().removePreference(userDictionaryPreference);
|
||||
} else if (localeList.size() <= 1) {
|
||||
final Intent intent =
|
||||
new Intent(UserDictionaryList.USER_DICTIONARY_SETTINGS_INTENT_ACTION);
|
||||
userDictionaryPreference.setTitle(R.string.user_dict_single_settings_title);
|
||||
userDictionaryPreference.setIntent(intent);
|
||||
userDictionaryPreference.setFragment(
|
||||
com.android.settings.UserDictionarySettings.class.getName());
|
||||
// If the size of localeList is 0, we don't set the locale parameter in the
|
||||
@@ -216,7 +212,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
|
||||
userDictionaryPreference.getExtras().putString("locale", locale);
|
||||
}
|
||||
} else {
|
||||
userDictionaryPreference.setTitle(R.string.user_dict_multiple_settings_title);
|
||||
userDictionaryPreference.setFragment(UserDictionaryList.class.getName());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user