Add content description to screensaver customization button
This will let users know which screensaver they are customizing. Fixes: 267582102 Test: flashed device and enabled talkback, opened screensaver settings, and verified talkback correctly says the name of the screensaver Change-Id: I9d0d9422f06b7a78efca0e6953b73fe612f79e2a
This commit is contained in:
@@ -129,6 +129,9 @@ public class DreamAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||
// This must be called AFTER itemView.setSelected above, in order to keep the
|
||||
// customize button in an unselected state.
|
||||
mCustomizeButton.setSelected(false);
|
||||
mCustomizeButton.setContentDescription(
|
||||
mContext.getResources().getString(R.string.customize_button_description,
|
||||
item.getTitle()));
|
||||
}
|
||||
|
||||
setEnabledStateOnViews(itemView, mEnabled);
|
||||
|
Reference in New Issue
Block a user