aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-05-14 20:14:53 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-14 20:14:53 -0700
commit76218b966a6a712f3baa72d95c6d125d414cdbd4 (patch)
treee0a0c6c7fdec1739504c9b04e0988aeac1db1ed1 /java/src/com/android/inputmethod/latin/Suggest.java
parenta9aeb6f3ccd2964d79c287860bd660d9f19c8917 (diff)
parent0142b997bf18f5d07e83b3fd403f0b3ea4736040 (diff)
downloadlatinime-76218b966a6a712f3baa72d95c6d125d414cdbd4.tar.gz
latinime-76218b966a6a712f3baa72d95c6d125d414cdbd4.tar.xz
latinime-76218b966a6a712f3baa72d95c6d125d414cdbd4.zip
Merge "Do not set "SuggestionSpan"s for suggestions from the next word predicition" into jb-dev
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index 112bde6a3..845df81f6 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -253,13 +253,12 @@ public class Suggest implements Dictionary.WordCallback {
SuggestedWordInfo.removeDups(mSuggestions);
return new SuggestedWords(mSuggestions,
- // TODO: Just assuming the suggestions that came from the bigram prediction are
- // valid now. Need to assign a correct value for typedWordValid.
- true /* typedWordValid */,
+ false /* typedWordValid */,
false /* hasAutoCorrectionCandidate */,
false /* allowsToBeAutoCorrected */,
false /* isPunctuationSuggestions */,
- false /* isObsoleteSuggestions */);
+ false /* isObsoleteSuggestions */,
+ true /* isPrediction */);
}
// TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder
@@ -396,7 +395,8 @@ public class Suggest implements Dictionary.WordCallback {
autoCorrectionAvailable /* hasAutoCorrectionCandidate */,
allowsToBeAutoCorrected /* allowsToBeAutoCorrected */,
false /* isPunctuationSuggestions */,
- false /* isObsoleteSuggestions */);
+ false /* isObsoleteSuggestions */,
+ false /* isPrediction */);
}
/**