diff options
author | 2014-02-25 15:35:37 +0900 | |
---|---|---|
committer | 2014-02-25 19:44:57 +0900 | |
commit | 0c34ee20a80884fea49b228745ce87132ae6f22f (patch) | |
tree | 73c52b68a31265e751baa66633b448c377695ce1 /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | 783f1932393547b2bcb88e6dc454ce888ce1d4a1 (diff) | |
download | latinime-0c34ee20a80884fea49b228745ce87132ae6f22f.tar.gz latinime-0c34ee20a80884fea49b228745ce87132ae6f22f.tar.xz latinime-0c34ee20a80884fea49b228745ce87132ae6f22f.zip |
[QRP5] Fix boldness for predictions, and small refactoring
This is more correct. When predictions, the typed word should
always be null unless explicitly passed. The text color should be
that of a valid typed word only if it's actually the typed word.
Bug: 13170509
Change-Id: I769ae100e112c37c6f02064fe9ef2f81372ca9e5
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index ac59f41e4..5e144106f 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -227,7 +227,7 @@ public final class Suggest { // TODO: this first argument is lying. If this is a whitelisted word which is an // actual word, it says typedWordValid = false, which looks wrong. We should either // rename the attribute or change the value. - !allowsToBeAutoCorrected /* typedWordValid */, + !isPrediction && !allowsToBeAutoCorrected /* typedWordValid */, hasAutoCorrection, /* willAutoCorrect */ false /* isObsoleteSuggestions */, isPrediction, sequenceNumber)); } |