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:
commit
bc51766dea
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue