aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2012-04-05 20:45:59 +0900
committerKen Wakasa <kwakasa@google.com>2012-04-05 20:50:27 +0900
commitaa300bb73a970a42ffb8bc8c5419c22191a7c08a (patch)
tree7583b8adee18b1bd35f227cb4dea1643adf36f33 /java/src/com/android/inputmethod/latin/Suggest.java
parentcb389ef0d6e6eec737c249e1729c2a2cdc30f341 (diff)
downloadlatinime-aa300bb73a970a42ffb8bc8c5419c22191a7c08a.tar.gz
latinime-aa300bb73a970a42ffb8bc8c5419c22191a7c08a.tar.xz
latinime-aa300bb73a970a42ffb8bc8c5419c22191a7c08a.zip
Don't draw red underline for manually picked words that came from bigram prediction
Change-Id: I544680c8b4b1baff71bd08168630a34e803c40b9
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index b31f3019c..0fcac58a6 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -261,7 +261,9 @@ public class Suggest implements Dictionary.WordCallback {
SuggestedWordInfo.removeDups(mSuggestions);
return new SuggestedWords(mSuggestions,
- false /* typedWordValid */,
+ // 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 /* hasAutoCorrectionCandidate */,
false /* allowsToBeAutoCorrected */,
false /* isPunctuationSuggestions */,