commit | e4602aeb5148ea0908d7961afd1ca89c90682cff | [log] [tgz] |
---|---|---|
author | Adam Cohen <adamcohen@google.com> | Thu Oct 31 15:46:45 2013 -0700 |
committer | Adam Cohen <adamcohen@google.com> | Thu Oct 31 15:49:01 2013 -0700 |
tree | ca40324050883f9f072abea9b4d5f2005658aeb3 | |
parent | 917e38851cbc6caffe1f8dade4db452bace522ba [diff] [blame] |
Reporting toIndex in scroll events (issue 11356512) Change-Id: I96a97865970e0b9a6760246c4f830f3ceff53f09
diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java index 5146e14..46c861b 100644 --- a/src/com/android/launcher3/PagedView.java +++ b/src/com/android/launcher3/PagedView.java
@@ -675,6 +675,7 @@ AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_SCROLLED); ev.setItemCount(getChildCount()); ev.setFromIndex(mCurrentPage); + ev.setToIndex(getNextPage()); final int action; if (getNextPage() >= mCurrentPage) {