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/BinaryDictionaryDecayingTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java') diff --git a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java index f4b16a7e1..fa5123665 100644 --- a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java +++ b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java @@ -150,7 +150,7 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase { binaryDictionary.flushWithGC(); binaryDictionary.close(); - final DictDecoder dictDecoder = FormatSpec.getDictDecoder(dictFile); + final DictDecoder dictDecoder = FormatSpec.getDictDecoder(dictFile, 0, dictFile.length()); try { final FusionDictionary dict = dictDecoder.readDictionaryBinary(false /* deleteDictIfBroken */); -- cgit v1.2.3-83-g751a