Removing accessibility description from page indicators
The current page is announced upon switching to it. Is should be done this way for all future page implementations with indicators. Bug: 77827828 Test: Manual Change-Id: I8f2f163a261dd7098939674d39e014236fc66d5d
This commit is contained in:
@@ -203,7 +203,6 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
if (mPageIndicatorViewId > -1) {
|
||||
mPageIndicator = parent.findViewById(mPageIndicatorViewId);
|
||||
mPageIndicator.setMarkersCount(getChildCount());
|
||||
mPageIndicator.setPageDescription(getPageIndicatorDescription());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -310,7 +309,6 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
|
||||
private void updatePageIndicator() {
|
||||
if (mPageIndicator != null) {
|
||||
mPageIndicator.setPageDescription(getPageIndicatorDescription());
|
||||
mPageIndicator.setActiveMarker(getNextPage());
|
||||
}
|
||||
}
|
||||
@@ -1541,10 +1539,6 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
return false;
|
||||
}
|
||||
|
||||
protected String getPageIndicatorDescription() {
|
||||
return getCurrentPageDescription();
|
||||
}
|
||||
|
||||
protected boolean canAnnouncePageDescription() {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user