Merge "Removing itemCount, fromIndex and toIndex from AccessibilityEvent.TYPE_VIEW_SCROLLED sent by PagedView. This causes an additional reduntant voice message on scroll (see the bug)." into ub-launcher3-burnaby

This commit is contained in:
Vadim Tryshev 2015-05-20 18:10:54 +00:00 committed by Android (Google) Code Review
commit bc51766dea
1 changed files with 0 additions and 3 deletions

View File

@ -633,9 +633,6 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
if (mCurrentPage != getNextPage()) { if (mCurrentPage != getNextPage()) {
AccessibilityEvent ev = AccessibilityEvent ev =
AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_SCROLLED); AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_SCROLLED);
ev.setItemCount(getChildCount());
ev.setFromIndex(getNextPage());
ev.setToIndex(getNextPage());
sendAccessibilityEventUnchecked(ev); sendAccessibilityEventUnchecked(ev);
} }