diff options
author | 2013-12-12 15:08:10 +0900 | |
---|---|---|
committer | 2013-12-13 18:18:20 +0900 | |
commit | a245d15da5d295af21ead9a01583c64796a31ad7 (patch) | |
tree | 1156247b156533c7b946f0f42c1d74642ea991e1 /tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java | |
parent | af0c222a5ec4a8dda3db7b99b2e641434f2c4225 (diff) | |
download | latinime-a245d15da5d295af21ead9a01583c64796a31ad7.tar.gz latinime-a245d15da5d295af21ead9a01583c64796a31ad7.tar.xz latinime-a245d15da5d295af21ead9a01583c64796a31ad7.zip |
Have dicttool use the native library to generate v4 dicts.
Yay !
Change-Id: Iea8ced9e81031b9ab7eff05ad9ef7215be248de9
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java index 34226dcd3..208cb99b5 100644 --- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java +++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictUtils.java @@ -65,7 +65,7 @@ public class BinaryDictUtils { return new Ver4DictEncoder(cacheDir); } else if (formatOptions.mVersion == FormatSpec.VERSION3 || formatOptions.mVersion == FormatSpec.VERSION2) { - return new Ver3DictEncoder(file); + return new Ver2DictEncoder(file); } else { throw new RuntimeException("The format option has a wrong version : " + formatOptions.mVersion); @@ -77,7 +77,7 @@ public class BinaryDictUtils { if (formatOptions.mVersion == FormatSpec.VERSION4) { return new Ver4DictUpdater(file, DictDecoder.USE_WRITABLE_BYTEBUFFER); } else if (formatOptions.mVersion == FormatSpec.VERSION3) { - return new Ver3DictUpdater(file, DictDecoder.USE_WRITABLE_BYTEBUFFER); + return new Ver2DictUpdater(file, DictDecoder.USE_WRITABLE_BYTEBUFFER); } else { throw new UnsupportedFormatException("The format option has a wrong version : " + formatOptions.mVersion); |