diff options
author | 2011-05-02 04:28:16 -0700 | |
---|---|---|
committer | 2011-05-02 04:28:16 -0700 | |
commit | ccb60b76277533070b6af4b93d249a66640049fa (patch) | |
tree | b5b15ecd5c2c00d77561c646a3ed608bf1f7f449 /java/src/com/android/inputmethod/latin/ExpandableDictionary.java | |
parent | 9b2192bfd2d3a06df3c685ed4287e192dbaabf32 (diff) | |
parent | 0730bbfbf5e37bbcb5c287aeff71b304c833a36e (diff) | |
download | latinime-ccb60b76277533070b6af4b93d249a66640049fa.tar.gz latinime-ccb60b76277533070b6af4b93d249a66640049fa.tar.xz latinime-ccb60b76277533070b6af4b93d249a66640049fa.zip |
Merge "Straighten out magic space vs real spaces behavior."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ExpandableDictionary.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java index be2c6b21b..26391fe46 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java +++ b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java @@ -19,6 +19,8 @@ package com.android.inputmethod.latin; import android.content.Context; import android.os.AsyncTask; +import com.android.inputmethod.keyboard.Keyboard; + import java.util.LinkedList; /** @@ -41,8 +43,6 @@ public class ExpandableDictionary extends Dictionary { private int mMaxDepth; private int mInputLength; - private static final char QUOTE = '\''; - private boolean mRequiresReload; private boolean mUpdatingDictionary; @@ -304,7 +304,8 @@ public class ExpandableDictionary extends Dictionary { getWordsRec(children, codes, word, depth + 1, completion, snr, inputIndex, skipPos, callback); } - } else if ((c == QUOTE && currentChars[0] != QUOTE) || depth == skipPos) { + } else if ((c == Keyboard.CODE_SINGLE_QUOTE + && currentChars[0] != Keyboard.CODE_SINGLE_QUOTE) || depth == skipPos) { // Skip the ' and continue deeper word[depth] = c; if (children != null) { |