Make preview pager and pager indicator screenreader-enabled
Bug: 27127738 Change-Id: I11a8589f4d8e1f15e895831dc3bd0cb7472e0591
This commit is contained in:
@@ -50,6 +50,9 @@ public class PreviewPagerAdapter extends PagerAdapter {
|
||||
for (int i = 0; i < previewSampleResIds.length; ++i) {
|
||||
mPreviewFrames[i] = (TouchBlockingFrameLayout) LayoutInflater.from(context)
|
||||
.inflate(R.layout.preview_frame_container, null);
|
||||
mPreviewFrames[i].setContentDescription(
|
||||
context.getString(R.string.preview_page_indicator_content_description, i + 1,
|
||||
previewSampleResIds.length));
|
||||
|
||||
for (Configuration configuration : configurations) {
|
||||
// Create a new configuration for the specified value. It won't
|
||||
|
Reference in New Issue
Block a user