diff options
author | 2014-02-24 06:00:50 -0800 | |
---|---|---|
committer | 2014-02-24 06:00:50 -0800 | |
commit | a6ab1f90657e3cbe91a11e8c64a16212a1070c48 (patch) | |
tree | 9214094f6008e98fcca15af9453ca4f232ad55b8 /java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java | |
parent | b7a224636cb9a1356089475ffbd9e45b3084b80d (diff) | |
parent | 6e224a236a0a7cd253f74c7ed8b9a8f2eea41600 (diff) | |
download | latinime-a6ab1f90657e3cbe91a11e8c64a16212a1070c48.tar.gz latinime-a6ab1f90657e3cbe91a11e8c64a16212a1070c48.tar.xz latinime-a6ab1f90657e3cbe91a11e8c64a16212a1070c48.zip |
am 6e224a23: Merge "Correctly read the header of APK-embedded dicts"
* commit '6e224a236a0a7cd253f74c7ed8b9a8f2eea41600':
Correctly read the header of APK-embedded dicts
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; } |