Merge "Reporting toIndex in scroll events (issue 11356512)" into jb-ub-now-jetsonic

This commit is contained in:
Adam Cohen
2013-10-31 22:52:10 +00:00
committed by Android (Google) Code Review
+1
View File
@@ -675,6 +675,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_SCROLLED);
ev.setItemCount(getChildCount());
ev.setFromIndex(mCurrentPage);
ev.setToIndex(getNextPage());
final int action;
if (getNextPage() >= mCurrentPage) {