OSDN Git Service

Reporting toIndex in scroll events (issue 11356512)
authorAdam Cohen <adamcohen@google.com>
Thu, 31 Oct 2013 22:46:45 +0000 (15:46 -0700)
committerAdam Cohen <adamcohen@google.com>
Thu, 31 Oct 2013 22:49:01 +0000 (15:49 -0700)
Change-Id: I96a97865970e0b9a6760246c4f830f3ceff53f09

src/com/android/launcher3/PagedView.java

index 5146e14..46c861b 100644 (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) {