diff options
author | 2013-08-20 11:05:09 +0000 | |
---|---|---|
committer | 2013-08-20 11:05:09 +0000 | |
commit | 3f15c41d88c1060642cec87f02c3cdfd5b4c1cb8 (patch) | |
tree | 8d9ff1cfc0b9f310e7df556cbb081a827c0617c1 /java/src/com/android/inputmethod/latin/ExpandableDictionary.java | |
parent | 33f5f0df8b458269177d8f984d1050c0a20001c2 (diff) | |
parent | ef1e363016623ccf409c8c270f2c1e35a67734c9 (diff) | |
download | latinime-3f15c41d88c1060642cec87f02c3cdfd5b4c1cb8.tar.gz latinime-3f15c41d88c1060642cec87f02c3cdfd5b4c1cb8.tar.xz latinime-3f15c41d88c1060642cec87f02c3cdfd5b4c1cb8.zip |
Merge "[AC1] Add a memory of where to cut the first word."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ExpandableDictionary.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java index bd2d70365..b69e94053 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java +++ b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java @@ -403,7 +403,8 @@ public class ExpandableDictionary extends Dictionary { // the respective size of the typed word and the suggestion if it matters sometime // in the future. suggestions.add(new SuggestedWordInfo(new String(word, 0, depth + 1), finalFreq, - SuggestedWordInfo.KIND_CORRECTION, mDictType)); + SuggestedWordInfo.KIND_CORRECTION, mDictType, + SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */)); if (suggestions.size() >= Suggest.MAX_SUGGESTIONS) return false; } if (null != node.mShortcutTargets) { @@ -411,7 +412,8 @@ public class ExpandableDictionary extends Dictionary { for (int shortcutIndex = 0; shortcutIndex < length; ++shortcutIndex) { final char[] shortcut = node.mShortcutTargets.get(shortcutIndex); suggestions.add(new SuggestedWordInfo(new String(shortcut, 0, shortcut.length), - finalFreq, SuggestedWordInfo.KIND_SHORTCUT, mDictType)); + finalFreq, SuggestedWordInfo.KIND_SHORTCUT, mDictType, + SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */)); if (suggestions.size() > Suggest.MAX_SUGGESTIONS) return false; } } @@ -657,7 +659,8 @@ public class ExpandableDictionary extends Dictionary { if (freq >= 0 && node == null) { suggestions.add(new SuggestedWordInfo(new String(mLookedUpString, index, Constants.DICTIONARY_MAX_WORD_LENGTH - index), - freq, SuggestedWordInfo.KIND_CORRECTION, mDictType)); + freq, SuggestedWordInfo.KIND_CORRECTION, mDictType, + SuggestedWordInfo.NOT_AN_INDEX)); } } } |