Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57c0c577 authored by Jean Chalard's avatar Jean Chalard
Browse files

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

Bug: 10385162
Change-Id: Icf9471d474a3a8ed8f38c46c7948c66f9131691e
parent 0c34ee20
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1360,10 +1360,12 @@ public final class InputLogic {
                        }});
                        }});
        } else {
        } else {
            // We found suggestion spans in the word. We'll create the SuggestedWords out of
            // 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,
            final SuggestedWords suggestedWords = new SuggestedWords(suggestions,
                    null /* rawSuggestions */, typedWord,
                    null /* rawSuggestions */, typedWord,
                    true /* typedWordValid */, false /* willAutoCorrect */,
                    false /* typedWordValid */, false /* willAutoCorrect */,
                    false /* isObsoleteSuggestions */, false /* isPrediction */,
                    false /* isObsoleteSuggestions */, false /* isPrediction */,
                    SuggestedWords.NOT_A_SEQUENCE_NUMBER);
                    SuggestedWords.NOT_A_SEQUENCE_NUMBER);
            mIsAutoCorrectionIndicatorOn = false;
            mIsAutoCorrectionIndicatorOn = false;