Merge "Show all languages if user enables multiple subtypes"

This commit is contained in:
Satoshi Kataoka
2013-07-24 07:02:46 +00:00
committed by Android (Google) Code Review

View File

@@ -135,6 +135,11 @@ public class UserDictionaryList extends SettingsPreferenceFragment {
// in the list.
localeSet.add(mLocale);
}
if (localeSet.size() > 1) {
// Have an "All languages" entry in the languages list if there are two or more active
// languages
localeSet.add("");
}
if (localeSet.isEmpty()) {
userDictGroup.addPreference(createUserDictionaryPreference(null, activity));