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

Commit a0d65ecf authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Fixed a bug with the scrolling after expanding a notification" into nyc-dev

parents f4b50a3a 94ab18c0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1814,8 +1814,12 @@ public class NotificationStackScrollLayout extends ViewGroup
                // it will be set once we reach the boundary
                mMaxOverScroll = 0.0f;
            }
            int minScrollY = Math.max(0, scrollRange);
            if (mExpandedInThisMotion) {
                minScrollY = Math.min(minScrollY, mMaxScrollAfterExpand);
            }
            mScroller.fling(mScrollX, mOwnScrollY, 1, velocityY, 0, 0, 0,
                    Math.max(0, scrollRange), 0, Integer.MAX_VALUE / 2);
                    minScrollY, 0, mExpandedInThisMotion && mOwnScrollY >= 0 ? 0 : Integer.MAX_VALUE / 2);

            postInvalidateOnAnimation();
        }