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/SuggestedWords.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/SuggestedWords.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestedWords.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index 46df3e88c..06bc90c97 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -69,7 +69,7 @@ public class SuggestedWords { final boolean isPrediction, final int sequenceNumber) { this(suggestedWordInfoList, rawSuggestions, - suggestedWordInfoList.isEmpty() ? null + (suggestedWordInfoList.isEmpty() || isPrediction) ? null : suggestedWordInfoList.get(INDEX_OF_TYPED_WORD).mWord, typedWordValid, willAutoCorrect, isObsoleteSuggestions, isPrediction, sequenceNumber); |