Show all languages if user enables multiple subtypes

Bug: 8976598
Change-Id: Idbed69da04321a6f27033329686572d452d26f7a
This commit is contained in:
Satoshi Kataoka
2013-07-23 17:55:48 +09:00
parent b355683253
commit bac2974dd0

View File

@@ -135,6 +135,11 @@ public class UserDictionaryList extends SettingsPreferenceFragment {
// in the list. // in the list.
localeSet.add(mLocale); 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()) { if (localeSet.isEmpty()) {
userDictGroup.addPreference(createUserDictionaryPreference(null, activity)); userDictGroup.addPreference(createUserDictionaryPreference(null, activity));