diff options
author | Jon Miranda <jonmiranda@google.com> | 2016-09-19 11:25:39 -0700 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2016-09-19 11:25:39 -0700 |
commit | 6c61323998edccbc28dc9f31602594e4f32e1215 (patch) | |
tree | b36d88d2752bee5ce7fb5b543cafbf2101ee1a29 /src/com/android | |
parent | d1e5b5ceaaf21ba7b33e21237f36eb4107f477f5 (diff) | |
download | android_packages_apps_Trebuchet-6c61323998edccbc28dc9f31602594e4f32e1215.tar.gz android_packages_apps_Trebuchet-6c61323998edccbc28dc9f31602594e4f32e1215.tar.bz2 android_packages_apps_Trebuchet-6c61323998edccbc28dc9f31602594e4f32e1215.zip |
Add context to widget dimensions for accessibility.
Bug: 19085860
Change-Id: Ia28c2c14b93945d796226eea3de040e971fd42f0
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/launcher3/widget/WidgetCell.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/widget/WidgetCell.java b/src/com/android/launcher3/widget/WidgetCell.java index 97877fd35..293585dd6 100644 --- a/src/com/android/launcher3/widget/WidgetCell.java +++ b/src/com/android/launcher3/widget/WidgetCell.java @@ -135,6 +135,8 @@ public class WidgetCell extends LinearLayout implements OnLayoutChangeListener { mWidgetName.setText(mItem.label); mWidgetDims.setText(getContext().getString(R.string.widget_dims_format, mItem.spanX, mItem.spanY)); + mWidgetDims.setContentDescription(getContext().getString( + R.string.widget_accessible_dims_format, mItem.spanX, mItem.spanY)); mWidgetPreviewLoader = loader; if (item.activityInfo != null) { |