aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2012-09-09 20:43:37 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-09-09 20:43:37 -0700
commit0295a39845da87f6f082d50a5c3b1b403f5e07c2 (patch)
treebf627271b3afb00cb5e6baba2383dcde8f50535b /java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
parent33164f3287e46c7199493a31a36e32a939a75b2a (diff)
parenteae7b293e4a854819aa0de663066cd0b6cdd52e7 (diff)
downloadlatinime-0295a39845da87f6f082d50a5c3b1b403f5e07c2.tar.gz
latinime-0295a39845da87f6f082d50a5c3b1b403f5e07c2.tar.xz
latinime-0295a39845da87f6f082d50a5c3b1b403f5e07c2.zip
am eae7b293: Check the length of the word when add to FusionDictionary.
* commit 'eae7b293e4a854819aa0de663066cd0b6cdd52e7': Check the length of the word when add to FusionDictionary.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
index 7de5cf340..6b79810f9 100644
--- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
+++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
@@ -16,6 +16,7 @@
package com.android.inputmethod.latin.makedict;
+import com.android.inputmethod.latin.Constants;
import com.android.inputmethod.latin.makedict.FusionDictionary.CharGroup;
import com.android.inputmethod.latin.makedict.FusionDictionary.DictionaryOptions;
import com.android.inputmethod.latin.makedict.FusionDictionary.Node;
@@ -143,7 +144,7 @@ public class BinaryDictInputOutput {
// TODO: Make this value adaptative to content data, store it in the header, and
// use it in the reading code.
- private static final int MAX_WORD_LENGTH = 48;
+ private static final int MAX_WORD_LENGTH = Constants.Dictionary.MAX_WORD_LENGTH;
private static final int MASK_GROUP_ADDRESS_TYPE = 0xC0;
private static final int FLAG_GROUP_ADDRESS_TYPE_NOADDRESS = 0x00;