mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Don't set redundant content description for widgets
TextView label already is used as label for accessibility Bug: 8185316
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user