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

Commit 94ab18c0 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug with the scrolling after expanding a notification

Bug: 24866646
Change-Id: I1ca8bfaa42e79dd7f3c5ebfbf94ff2a44718ec7e
parent 42357e03
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();
        }