aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-25 15:37:08 +0900
committerJean Chalard <jchalard@google.com>2014-02-25 19:48:09 +0900
commit57c0c577afbb7b50246107ccac5f2244c0fb3ddc (patch)
tree72cc004c848a12b5dbbc487e0186539486d9f28f /java/src
parent0c34ee20a80884fea49b228745ce87132ae6f22f (diff)
downloadlatinime-57c0c577afbb7b50246107ccac5f2244c0fb3ddc.tar.gz
latinime-57c0c577afbb7b50246107ccac5f2244c0fb3ddc.tar.xz
latinime-57c0c577afbb7b50246107ccac5f2244c0fb3ddc.zip
[QRP6] Fix: recorrection top candidate is displayed in bold
Bug: 10385162 Change-Id: Icf9471d474a3a8ed8f38c46c7948c66f9131691e
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
index 045d06f0e..f2f9f1e68 100644
--- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
+++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
@@ -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;