Default puctuation suggestions have same color

Bug: 3000978
Change-Id: Iedb3d4619ada8bd3ccc301ca2a8fb16fba6580c0
This commit is contained in:
Tadashi G. Takaoka 2010-09-17 11:31:38 +09:00
parent 809bef520b
commit 1476988ebb

View file

@ -247,7 +247,9 @@ public class CandidateView extends View {
paint.setTypeface(Typeface.DEFAULT_BOLD); paint.setTypeface(Typeface.DEFAULT_BOLD);
paint.setColor(mColorRecommended); paint.setColor(mColorRecommended);
existsAutoCompletion = true; 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); paint.setColor(mColorOther);
} }
final int wordWidth; final int wordWidth;