aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-05-13 07:53:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-13 07:53:02 +0000
commit5fc93fadd6bfd03ba3d2f535e4e412b09df33016 (patch)
tree88cae084e4817e1c8597f7902113c8c737edc751 /java/src
parentcda11fb3a49e1dca364ef0caa1daf9a9afd8e029 (diff)
parent06d1cdd5dc73ef118e2a2853fc75dc911202f373 (diff)
downloadlatinime-5fc93fadd6bfd03ba3d2f535e4e412b09df33016.tar.gz
latinime-5fc93fadd6bfd03ba3d2f535e4e412b09df33016.tar.xz
latinime-5fc93fadd6bfd03ba3d2f535e4e412b09df33016.zip
Merge "Add content description to the voice key"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
index 8bfa63c3c..810bda758 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
@@ -381,6 +381,7 @@ final class SuggestionStripLayoutHelper {
}
// Disable this suggestion if the suggestion is null or empty.
+ // TODO: Fix disabled {@link TextView}'s content description.
wordView.setEnabled(!TextUtils.isEmpty(word));
final CharSequence text = getEllipsizedText(word, width, wordView.getPaint());
final float scaleX = getTextScaleX(word, width, wordView.getPaint());
@@ -424,7 +425,9 @@ final class SuggestionStripLayoutHelper {
final int countInStrip) {
// Clear all suggestions first
for (int positionInStrip = 0; positionInStrip < countInStrip; ++positionInStrip) {
- mWordViews.get(positionInStrip).setText(null);
+ final TextView wordView = mWordViews.get(positionInStrip);
+ wordView.setText(null);
+ wordView.setTag(null);
// Make this inactive for touches in {@link #layoutWord(int,int)}.
if (SuggestionStripView.DBG) {
mDebugInfoViews.get(positionInStrip).setText(null);