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

Commit 03e6e450 authored by Lyn Han's avatar Lyn Han
Browse files

Fix stack overflow from setOwnScrollY

Fixes: 186961122
Test: manual
Change-Id: I12eebfdfe5d6ed93be349957baf84fad4f725648
parent 8315904e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1000,7 +1000,6 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
        mAmbientState.setCurrentScrollVelocity(mScroller.isFinished()
                ? 0
                : mScroller.getCurrVelocity());
        mAmbientState.setScrollY(mOwnScrollY);
        mStackScrollAlgorithm.resetViewStates(mAmbientState, getSpeedBumpIndex());
        if (!isCurrentlyAnimating() && !mNeedsAnimation) {
            applyCurrentState();
@@ -4542,7 +4541,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
            // We still want to call the normal scrolled changed for accessibility reasons
            onScrollChanged(mScrollX, ownScrollY, mScrollX, mOwnScrollY);
            mOwnScrollY = ownScrollY;
            updateChildren();
            mAmbientState.setScrollY(mOwnScrollY);
            updateOnScrollChange();
            updateStackPosition();
        }