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:
Vadim Tryshev
2018-04-16 15:43:24 -07:00
parent 3483c52e6b
commit c7dc69dc1f
5 changed files with 1 additions and 24 deletions
-6
View File
@@ -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;
}