Don't set redundant content description for widgets

TextView label already is used as label for
accessibility

Bug: 8185316
This commit is contained in:
Michael Jurka
2013-04-18 17:11:05 +02:00
parent 02d1863c59
commit fa56934a82

View 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);