OSDN Git Service

Fixing crash with invalid current page.
authorWinson Chung <winsonc@google.com>
Wed, 30 Oct 2013 00:21:56 +0000 (17:21 -0700)
committerWinson Chung <winsonc@google.com>
Wed, 30 Oct 2013 00:21:56 +0000 (17:21 -0700)
Change-Id: I36e76176b6172a747a6526d96b82c9870b56067c

src/com/android/launcher3/PagedView.java

index 1fee4c2..9b891e4 100644 (file)
@@ -515,7 +515,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
      * re-enable scrolling.
      */
     void stopScrolling() {
-        mCurrentPage = mNextPage;
+        mCurrentPage = getNextPage();
         forceFinishScroller();
     }