diff options
author | 2013-07-01 15:25:33 +0900 | |
---|---|---|
committer | 2013-07-01 15:25:33 +0900 | |
commit | a62b5b22eff2c1842fe1e0a4ea949e1e004de40b (patch) | |
tree | 567b46d5bb539ff574497b6398815415287dfe48 /java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java | |
parent | e04794cbbeafec7463a91554d7c069deacddc744 (diff) | |
download | latinime-a62b5b22eff2c1842fe1e0a4ea949e1e004de40b.tar.gz latinime-a62b5b22eff2c1842fe1e0a4ea949e1e004de40b.tar.xz latinime-a62b5b22eff2c1842fe1e0a4ea949e1e004de40b.zip |
Regenerate old version dictionaries using new format.
Bug: 9617181
Change-Id: I228a3eac959f81b38e4092015e8e3c429d46fa60
Diffstat (limited to 'java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java b/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java index 2cd3a26d8..2e1e66140 100644 --- a/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java +++ b/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java @@ -224,14 +224,10 @@ final public class BinaryDictionaryGetter { } } - // ## HACK ## we prevent usage of a dictionary before version 18 for English only. The reason - // for this is, since those do not include whitelist entries, the new code with an old version - // of the dictionary would lose whitelist functionality. + // ## HACK ## we prevent usage of a dictionary before version 18. The reason for this is, since + // those do not include whitelist entries, the new code with an old version of the dictionary + // would lose whitelist functionality. private static boolean hackCanUseDictionaryFile(final Locale locale, final File f) { - // Only for English - other languages didn't have a whitelist, hence this - // ad-hoc ## HACK ## - if (!Locale.ENGLISH.getLanguage().equals(locale.getLanguage())) return true; - FileInputStream inStream = null; try { // Read the version of the file |