aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-08-20 04:06:59 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-20 04:06:59 -0700
commit197a883f56cf2e1c2a339bf3aa16aabb20725941 (patch)
tree29189e9ec4469acf7ee1f8bc36bb9107ce7eb899 /java/src/com/android/inputmethod/latin/ExpandableDictionary.java
parent7abed29a7ad8d8f44b0d07fc66e929abf26ac8e8 (diff)
parent3f15c41d88c1060642cec87f02c3cdfd5b4c1cb8 (diff)
downloadlatinime-197a883f56cf2e1c2a339bf3aa16aabb20725941.tar.gz
latinime-197a883f56cf2e1c2a339bf3aa16aabb20725941.tar.xz
latinime-197a883f56cf2e1c2a339bf3aa16aabb20725941.zip
am 3f15c41d: Merge "[AC1] Add a memory of where to cut the first word."
* commit '3f15c41d88c1060642cec87f02c3cdfd5b4c1cb8': [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.java9
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));
}
}
}