diff options
author | 2015-02-27 21:36:56 +0000 | |
---|---|---|
committer | 2015-02-27 21:36:56 +0000 | |
commit | a3b7ff254d078e0023002a4afe6c50b1057cefdf (patch) | |
tree | 59db78a5d393507fe170d2e19902fb3c0e26e5a0 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | |
parent | 33fdb46b5ef1a76e48718e8d8977ea98224f82db (diff) | |
parent | 9770336a9b9b65fc62bde6f361e90909d4259769 (diff) | |
download | latinime-a3b7ff254d078e0023002a4afe6c50b1057cefdf.tar.gz latinime-a3b7ff254d078e0023002a4afe6c50b1057cefdf.tar.xz latinime-a3b7ff254d078e0023002a4afe6c50b1057cefdf.zip |
am 9770336a: Merge "Label empty suggestions."
* commit '9770336a9b9b65fc62bde6f361e90909d4259769':
Label empty suggestions.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java index 4b849496c..17525f650 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java @@ -146,6 +146,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick for (int pos = 0; pos < SuggestedWords.MAX_SUGGESTIONS; pos++) { final TextView word = new TextView(context, null, R.attr.suggestionWordStyle); + word.setContentDescription(getResources().getString(R.string.spoken_empty_suggestion)); word.setOnClickListener(this); word.setOnLongClickListener(this); mWordViews.add(word); @@ -200,7 +201,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick mStripVisibilityGroup.setLayoutDirection(isRtlLanguage); mSuggestedWords = suggestedWords; mStartIndexOfMoreSuggestions = mLayoutHelper.layoutAndReturnStartIndexOfMoreSuggestions( - mSuggestedWords, mSuggestionsStrip, this); + getContext(), mSuggestedWords, mSuggestionsStrip, this); mStripVisibilityGroup.showSuggestionsStrip(); } |