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

Commit 3a1d274e authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed flickering when swiping away last notification

Because the last section includes the shelf, it needs
to use the final position of the shelf instead of the
current position for the minimum bottom location.
Otherwise the background cancels the animation
immediately and things go wrong.

Fixes: 127807981
Test: atest SystemUITests
Change-Id: Ide3e8e94129bd77cebf68ff053275f9177db69f0
parent fdf80338
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2482,7 +2482,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
            int minBottomPosition = minTopPosition;
            if (section == lastSection) {
                // We need to make sure the section goes all the way to the shelf
                minBottomPosition = (int) (mShelf.getTranslationY() + mShelf.getIntrinsicHeight());
                minBottomPosition = (int) (ViewState.getFinalTranslationY(mShelf)
                        + mShelf.getIntrinsicHeight());
            }
            minTopPosition = section.updateBounds(minTopPosition, minBottomPosition,
                    shiftPulsingWithFirst);