am 8ef27577: am 1476988e: Default puctuation suggestions have same color

Merge commit '8ef27577da17f4203db00d5df96c3d2ed32ac713'

* commit '8ef27577da17f4203db00d5df96c3d2ed32ac713':
  Default puctuation suggestions have same color
main
Tadashi G. Takaoka 2010-09-16 23:23:42 -07:00 committed by Android Git Automerger
commit 99a23923e6
1 changed files with 3 additions and 1 deletions

View File

@ -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;