From 890b44e5376413adc73025e046072bcce3e119c5 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Mon, 24 Feb 2014 22:17:27 +0900 Subject: Correctly read the header of APK-embedded dicts Bug: 13164518 Change-Id: I8768ad887af8b89ad9f29637f606c3c68629c7ca --- .../com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java') 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; } -- cgit v1.2.3-83-g751a