aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-25 04:31:38 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-25 04:31:38 -0800
commit0c3ff6d956ff98d5951b2595f5ce2f4bb4ea5493 (patch)
treea75cfaa13f95e8b2a143179242506941b2b9de10 /java
parent82c4474b63f2f4843fea74acd24e7cd9f5b41fa1 (diff)
parent57c0c577afbb7b50246107ccac5f2244c0fb3ddc (diff)
downloadlatinime-0c3ff6d956ff98d5951b2595f5ce2f4bb4ea5493.tar.gz
latinime-0c3ff6d956ff98d5951b2595f5ce2f4bb4ea5493.tar.xz
latinime-0c3ff6d956ff98d5951b2595f5ce2f4bb4ea5493.zip
am 57c0c577: [QRP6] Fix: recorrection top candidate is displayed in bold
* commit '57c0c577afbb7b50246107ccac5f2244c0fb3ddc': [QRP6] Fix: recorrection top candidate is displayed in bold
Diffstat (limited to 'java')
-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;