diff options
author | 2013-06-27 20:26:32 +0900 | |
---|---|---|
committer | 2013-06-27 20:31:02 +0900 | |
commit | 4ded1af21097652dcd0750d9b3f2f24df2904e25 (patch) | |
tree | 7b7ca590922023af9620ad19928f657ed3983776 | |
parent | ec69a259c60b89cfe5157dc6b43aa17f2f60d6ca (diff) | |
download | latinime-4ded1af21097652dcd0750d9b3f2f24df2904e25.tar.gz latinime-4ded1af21097652dcd0750d9b3f2f24df2904e25.tar.xz latinime-4ded1af21097652dcd0750d9b3f2f24df2904e25.zip |
Improve the language list in the personal dictionary
Bug: 9117704
Change-Id: I26e6f8369a3c7ffa4bb651b4b5a3e6f004121983
-rw-r--r-- | java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryList.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryList.java b/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryList.java index be5f11620..37c390d13 100644 --- a/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryList.java +++ b/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryList.java @@ -58,7 +58,6 @@ public class UserDictionaryList extends PreferenceFragment { new String[] { UserDictionary.Words.LOCALE }, null, null, null); final TreeSet<String> localeSet = new TreeSet<String>(); - boolean addedAllLocale = false; if (null == cursor) { // The user dictionary service is not present or disabled. Return null. return null; @@ -66,14 +65,10 @@ public class UserDictionaryList extends PreferenceFragment { final int columnIndex = cursor.getColumnIndex(UserDictionary.Words.LOCALE); do { final String locale = cursor.getString(columnIndex); - final boolean allLocale = TextUtils.isEmpty(locale); - localeSet.add(allLocale ? "" : locale); - if (allLocale) { - addedAllLocale = true; - } + localeSet.add(null != locale ? locale : ""); } while (cursor.moveToNext()); } - if (!UserDictionarySettings.IS_SHORTCUT_API_SUPPORTED && !addedAllLocale) { + if (!UserDictionarySettings.IS_SHORTCUT_API_SUPPORTED) { // For ICS, we need to show "For all languages" in case that the keyboard locale // is different from the system locale localeSet.add(""); |