diff options
author | Jonathan Miranda <jonmiranda@google.com> | 2016-09-19 23:04:11 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-09-19 23:04:11 +0000 |
commit | 41be5cdea5b21c496aadffb6ad4793f6bffd77fe (patch) | |
tree | e814e28e25a96c45da997dcbd2c4b9a3129b4c09 /src/com/android | |
parent | 48542731c562be7f4f41db0e16bbf0390285fb17 (diff) | |
parent | 6c61323998edccbc28dc9f31602594e4f32e1215 (diff) | |
download | android_packages_apps_Trebuchet-41be5cdea5b21c496aadffb6ad4793f6bffd77fe.tar.gz android_packages_apps_Trebuchet-41be5cdea5b21c496aadffb6ad4793f6bffd77fe.tar.bz2 android_packages_apps_Trebuchet-41be5cdea5b21c496aadffb6ad4793f6bffd77fe.zip |
Merge "Add context to widget dimensions for accessibility." into ub-launcher3-calgary-polish
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) { |