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

Commit c2da1090 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unneeded isShadeOpening check when clipping bottom HUN" into tm-dev

parents 11e68c87 9e595303
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -202,12 +202,10 @@ 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
                    && shadeClosedWithHUN) {
                    && !ambientState.isShadeExpanded()) {
                // The previous view is overlapping on top, clip!
                float overlapAmount = clipStart - newYTranslation;
                state.clipTopAmount = (int) overlapAmount;