diff options
author | 2011-01-14 13:45:21 +0900 | |
---|---|---|
committer | 2011-01-14 13:45:21 +0900 | |
commit | e5585c1854f5faa3fbe3a998295c8dfdb28ed0c5 (patch) | |
tree | c2851f818c57bee621f519fe2d77fc2a4793f66f /java/src/com/android/inputmethod/latin/InputLanguageSelection.java | |
parent | 93e4b45f6e5cc6fc5ea588e67a6c546378de5f6f (diff) | |
parent | 3481a5252d0b55e163ef353cb11d3cae6d093b04 (diff) | |
download | latinime-e5585c1854f5faa3fbe3a998295c8dfdb28ed0c5.tar.gz latinime-e5585c1854f5faa3fbe3a998295c8dfdb28ed0c5.tar.xz latinime-e5585c1854f5faa3fbe3a998295c8dfdb28ed0c5.zip |
Merge remote branch 'goog/master' into merge
Conflicts:
java/src/com/android/inputmethod/latin/BinaryDictionary.java
java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
Change-Id: Ib2b4acc9dd570d5f37b6aa455e2f07b0a884944a
Diffstat (limited to 'java/src/com/android/inputmethod/latin/InputLanguageSelection.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/InputLanguageSelection.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/InputLanguageSelection.java b/java/src/com/android/inputmethod/latin/InputLanguageSelection.java index 27e0fbe4a..faee38eda 100644 --- a/java/src/com/android/inputmethod/latin/InputLanguageSelection.java +++ b/java/src/com/android/inputmethod/latin/InputLanguageSelection.java @@ -99,15 +99,15 @@ public class InputLanguageSelection extends PreferenceActivity { } private boolean hasDictionary(Locale locale) { - Resources res = getResources(); - Configuration conf = res.getConfiguration(); - Locale saveLocale = conf.locale; + final Resources res = getResources(); + final Configuration conf = res.getConfiguration(); + final Locale saveLocale = conf.locale; boolean haveDictionary = false; conf.locale = locale; res.updateConfiguration(conf, res.getDisplayMetrics()); - int[] dictionaries = LatinIME.getDictionary(res); - BinaryDictionary bd = new BinaryDictionary(this, dictionaries, Suggest.DIC_MAIN); + int mainDicResId = LatinIME.getMainDictionaryResourceId(res); + BinaryDictionary bd = new BinaryDictionary(this, mainDicResId, Suggest.DIC_MAIN); // Is the dictionary larger than a placeholder? Arbitrarily chose a lower limit of // 4000-5000 words, whereas the LARGE_DICTIONARY is about 20000+ words. |