aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-05-15 11:37:52 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-15 11:37:52 -0700
commitd9c4aa83e15470275e0ce6e82f3c3af7bbcc73ec (patch)
treefbc5a1f9f8af03104b32afa1389664e3abe08564 /java/src/com/android/inputmethod/latin/Suggest.java
parentd09d3598d069007edd0162083d9936d2dabe4322 (diff)
parent76218b966a6a712f3baa72d95c6d125d414cdbd4 (diff)
downloadlatinime-d9c4aa83e15470275e0ce6e82f3c3af7bbcc73ec.tar.gz
latinime-d9c4aa83e15470275e0ce6e82f3c3af7bbcc73ec.tar.xz
latinime-d9c4aa83e15470275e0ce6e82f3c3af7bbcc73ec.zip
am 76218b96: Merge "Do not set "SuggestionSpan"s for suggestions from the next word predicition" into jb-dev
* commit '76218b966a6a712f3baa72d95c6d125d414cdbd4': Do not set "SuggestionSpan"s for suggestions from the next word predicition
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 */);
}
/**