am 57c0c577: [QRP6] Fix: recorrection top candidate is displayed in bold

* commit '57c0c577afbb7b50246107ccac5f2244c0fb3ddc':
  [QRP6] Fix: recorrection top candidate is displayed in bold
main
Jean Chalard 2014-02-25 04:31:38 -08:00 committed by Android Git Automerger
commit 0c3ff6d956
1 changed files with 4 additions and 2 deletions

View File

@ -1360,10 +1360,12 @@ public final class InputLogic {
}});
} else {
// We found suggestion spans in the word. We'll create the SuggestedWords out of
// them, and make willAutoCorrect false.
// them, and make willAutoCorrect false. We make typedWordValid false, because the
// color of the word in the suggestion strip changes according to this parameter,
// and false gives the correct color.
final SuggestedWords suggestedWords = new SuggestedWords(suggestions,
null /* rawSuggestions */, typedWord,
true /* typedWordValid */, false /* willAutoCorrect */,
false /* typedWordValid */, false /* willAutoCorrect */,
false /* isObsoleteSuggestions */, false /* isPrediction */,
SuggestedWords.NOT_A_SEQUENCE_NUMBER);
mIsAutoCorrectionIndicatorOn = false;