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

Commit a00b2879 authored by Lyn Han's avatar Lyn Han Committed by Android (Google) Code Review
Browse files

Merge "Fix overlapping HUNs"

parents e50baf05 28dd62af
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -202,10 +202,12 @@ public class StackScrollAlgorithm {
            float newHeight = state.height;
            float newNotificationEnd = newYTranslation + newHeight;
            boolean isHeadsUp = (child instanceof ExpandableNotificationRow) && child.isPinned();
            final boolean shadeClosedWithHUN =
                    ambientState.isShadeOpening() && !ambientState.isShadeExpanded();
            if (mClipNotificationScrollToTop
                    && (!state.inShelf || (isHeadsUp && !firstHeadsUp))
                    && newYTranslation < clipStart
                    && !ambientState.isShadeOpening()) {
                    && shadeClosedWithHUN) {
                // The previous view is overlapping on top, clip!
                float overlapAmount = clipStart - newYTranslation;
                state.clipTopAmount = (int) overlapAmount;