From bac2974dd025216ecfb3546a3f6c89d0d646484c Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Tue, 23 Jul 2013 17:55:48 +0900 Subject: [PATCH] Show all languages if user enables multiple subtypes Bug: 8976598 Change-Id: Idbed69da04321a6f27033329686572d452d26f7a --- src/com/android/settings/inputmethod/UserDictionaryList.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/android/settings/inputmethod/UserDictionaryList.java b/src/com/android/settings/inputmethod/UserDictionaryList.java index 408ec030fa4..24acb4aea8f 100644 --- a/src/com/android/settings/inputmethod/UserDictionaryList.java +++ b/src/com/android/settings/inputmethod/UserDictionaryList.java @@ -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));