OSDN Git Service

Don't set redundant content description for widgets
authorMichael Jurka <mikejurka@google.com>
Thu, 18 Apr 2013 15:11:05 +0000 (17:11 +0200)
committerMichael Jurka <mikejurka@google.com>
Thu, 18 Apr 2013 15:11:05 +0000 (17:11 +0200)
TextView label already is used as label for
accessibility

Bug: 8185316

src/com/android/launcher2/PagedViewWidget.java

index bb5827a..1336c7a 100644 (file)
@@ -112,7 +112,6 @@ public class PagedViewWidget extends LinearLayout {
         if (maxWidth > -1) {
             image.setMaxWidth(maxWidth);
         }
-        image.setContentDescription(info.label);
         final TextView name = (TextView) findViewById(R.id.widget_name);
         name.setText(info.label);
         final TextView dims = (TextView) findViewById(R.id.widget_dims);
@@ -130,7 +129,6 @@ public class PagedViewWidget extends LinearLayout {
         mInfo = info;
         CharSequence label = info.loadLabel(pm);
         final ImageView image = (ImageView) findViewById(R.id.widget_preview);
-        image.setContentDescription(label);
         final TextView name = (TextView) findViewById(R.id.widget_name);
         name.setText(label);
         final TextView dims = (TextView) findViewById(R.id.widget_dims);