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

Commit 3bd876ba authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Set mNextPage after springBack when overscrolling" into ub-launcher3-qt-dev

parents 01a4c80c 312209b0
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,