Fixing crash with invalid current page.

Change-Id: I36e76176b6172a747a6526d96b82c9870b56067c
This commit is contained in:
Winson Chung
2013-10-29 17:21:56 -07:00
parent c53d77c7b0
commit b88ae4158d

View File

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