mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Don't draw red underline for manually picked words that came from bigram prediction
Change-Id: I544680c8b4b1baff71bd08168630a34e803c40b9
This commit is contained in:
parent
cb389ef0d6
commit
aa300bb73a
@ -136,6 +136,8 @@ public class SuggestionSpanUtils {
|
||||
? (OBJ_FLAG_EASY_CORRECT | OBJ_FLAG_MISSPELLED)
|
||||
: 0;
|
||||
|
||||
// TODO: We should avoid adding suggestion span candidates that came from the bigram
|
||||
// prediction.
|
||||
final Object[] args =
|
||||
{ context, null, suggestionsList.toArray(new String[suggestionsList.size()]), flag,
|
||||
(Class<?>) SuggestionSpanPickedNotificationReceiver.class };
|
||||
|
@ -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 */,
|
||||
|
Loading…
Reference in New Issue
Block a user