Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 312209b0 authored by Tony Wickham's avatar Tony Wickham
Browse files

Set mNextPage after springBack when overscrolling

Bug: 134609899
Change-Id: I74294655689c4ccd66896550b74e205d1c3df543
parent e1abaa64
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1204,6 +1204,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
                    if (((initialScrollX >= mMaxScrollX) && (isVelocityXLeft || !isFling)) ||
                            ((initialScrollX <= mMinScrollX) && (!isVelocityXLeft || !isFling))) {
                        mScroller.springBack(getScrollX(), mMinScrollX, mMaxScrollX);
                        mNextPage = getPageNearestToCenterOfScreen();
                    } else {
                        mScroller.setInterpolator(mDefaultInterpolator);
                        mScroller.fling(initialScrollX, -velocityX,