diff options
author | 2015-02-27 21:33:01 +0000 | |
---|---|---|
committer | 2015-02-27 21:33:02 +0000 | |
commit | 9770336a9b9b65fc62bde6f361e90909d4259769 (patch) | |
tree | 443577e3ea4ceb4718919b7d00a25135dd9a115d /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | |
parent | 98886775cfb95dc7f6ab50653215373b94b13941 (diff) | |
parent | 24c275ccb9d12d6160b09c20afe17601b09957f1 (diff) | |
download | latinime-9770336a9b9b65fc62bde6f361e90909d4259769.tar.gz latinime-9770336a9b9b65fc62bde6f361e90909d4259769.tar.xz latinime-9770336a9b9b65fc62bde6f361e90909d4259769.zip |
Merge "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(); } |