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

Commit bf7eea6e authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Fixed a bug with the animation of the notification background" into qt-dev

am: 5958b7c7

Change-Id: I212c5057d87658fde1aed02abc54f5c114ba697b
parents 18d84682 5958b7c7
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -2516,12 +2516,20 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
            }
            return;
        }
        int minTopPosition = 0;
        int minTopPosition;
        NotificationSection lastSection = getLastVisibleSection();
        if (mStatusBarState != StatusBarState.KEYGUARD) {
            minTopPosition = (int) (mTopPadding + mStackTranslation);
        } else if (lastSection == null) {
            minTopPosition = mTopPadding;
        } else {
            // The first sections could be empty while there could still be elements in later
            // sections. The position of these first few sections is determined by the position of
            // the first visible section.
            NotificationSection firstVisibleSection = getFirstVisibleSection();
            firstVisibleSection.updateBounds(0 /* minTopPosition*/, 0 /* minBottomPosition */,
                    false /* shiftPulsingWithFirst */);
            minTopPosition = firstVisibleSection.getBounds().top;
        }
        boolean shiftPulsingWithFirst = mAmbientPulseManager.getAllEntries().count() <= 1;
        for (NotificationSection section : mSections) {