From 1476988ebbecbb44088423573a8311c97e4449dd Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 17 Sep 2010 11:31:38 +0900 Subject: [PATCH] Default puctuation suggestions have same color Bug: 3000978 Change-Id: Iedb3d4619ada8bd3ccc301ca2a8fb16fba6580c0 --- java/src/com/android/inputmethod/latin/CandidateView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/CandidateView.java b/java/src/com/android/inputmethod/latin/CandidateView.java index b84417b43..0f5b43009 100755 --- a/java/src/com/android/inputmethod/latin/CandidateView.java +++ b/java/src/com/android/inputmethod/latin/CandidateView.java @@ -247,7 +247,9 @@ public class CandidateView extends View { paint.setTypeface(Typeface.DEFAULT_BOLD); paint.setColor(mColorRecommended); existsAutoCompletion = true; - } else if (i != 0) { + } else if (i != 0 || (suggestion.length() == 1 && count > 1)) { + // HACK: even if i == 0, we use mColorOther when this suggestion's length is 1 and + // there are multiple suggestions, such as the default punctuation list. paint.setColor(mColorOther); } final int wordWidth;