diff options
author | 2012-05-14 20:14:53 -0700 | |
---|---|---|
committer | 2012-05-14 20:14:53 -0700 | |
commit | 76218b966a6a712f3baa72d95c6d125d414cdbd4 (patch) | |
tree | e0a0c6c7fdec1739504c9b04e0988aeac1db1ed1 /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | a9aeb6f3ccd2964d79c287860bd660d9f19c8917 (diff) | |
parent | 0142b997bf18f5d07e83b3fd403f0b3ea4736040 (diff) | |
download | latinime-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.java | 10 |
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 */); } /** |