aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-09-16 22:15:39 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-16 22:15:39 -0700
commit8ef27577da17f4203db00d5df96c3d2ed32ac713 (patch)
tree4269562b75c8979f5961182ee6ed5dd921094eb6 /java/src
parent37a8c654a0cb9728451623dc1eed13ec9767b889 (diff)
parent1476988ebbecbb44088423573a8311c97e4449dd (diff)
downloadlatinime-8ef27577da17f4203db00d5df96c3d2ed32ac713.tar.gz
latinime-8ef27577da17f4203db00d5df96c3d2ed32ac713.tar.xz
latinime-8ef27577da17f4203db00d5df96c3d2ed32ac713.zip
am 1476988e: Default puctuation suggestions have same color
Merge commit '1476988ebbecbb44088423573a8311c97e4449dd' into gingerbread-plus-aosp * commit '1476988ebbecbb44088423573a8311c97e4449dd': Default puctuation suggestions have same color
Diffstat (limited to 'java/src')
-rwxr-xr-xjava/src/com/android/inputmethod/latin/CandidateView.java4
1 files changed, 3 insertions, 1 deletions
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;