aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-24 22:17:27 +0900
committerJean Chalard <jchalard@google.com>2014-02-24 22:54:01 +0900
commit890b44e5376413adc73025e046072bcce3e119c5 (patch)
tree4baf38d0e2206ef2ee6fbe992e976fea71e74bbb /tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java
parentb08a9e021c2e5be7375295858b28bf8c4b9767b9 (diff)
downloadlatinime-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 'tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java2
1 files changed, 1 insertions, 1 deletions
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 */);