diff options
author | 2014-02-24 22:17:27 +0900 | |
---|---|---|
committer | 2014-02-24 22:54:01 +0900 | |
commit | 890b44e5376413adc73025e046072bcce3e119c5 (patch) | |
tree | 4baf38d0e2206ef2ee6fbe992e976fea71e74bbb /java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java | |
parent | b08a9e021c2e5be7375295858b28bf8c4b9767b9 (diff) | |
download | latinime-890b44e5376413adc73025e046072bcce3e119c5.tar.gz latinime-890b44e5376413adc73025e046072bcce3e119c5.tar.xz latinime-890b44e5376413adc73025e046072bcce3e119c5.zip |
Correctly read the header of APK-embedded dicts
Bug: 13164518
Change-Id: I8768ad887af8b89ad9f29637f606c3c68629c7ca
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java index b534ebeff..25e1bcd25 100644 --- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java +++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java @@ -357,7 +357,7 @@ public final class BinaryDictDecoderUtils { * @return true if it's a binary dictionary, false otherwise */ public static boolean isBinaryDictionary(final File file) { - final DictDecoder dictDecoder = FormatSpec.getDictDecoder(file); + final DictDecoder dictDecoder = FormatSpec.getDictDecoder(file, 0, file.length()); if (dictDecoder == null) { return false; } |