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

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

Merge "Exclude scrim padding when calculating stack height on lockscreen" into sc-dev

parents b357fadd 2e2ac20e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1149,8 +1149,9 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
            mOnStackYChanged.run();
        }
        if (mQsExpansionFraction <= 0) {
            final float scrimTopPadding = mAmbientState.isOnKeyguard() ? 0 : mSidePaddings;
            final float stackEndHeight = Math.max(0f,
                    getHeight() - getEmptyBottomMargin() - stackY - mSidePaddings);
                    getHeight() - getEmptyBottomMargin() - stackY - scrimTopPadding);
            mAmbientState.setStackEndHeight(stackEndHeight);
            mAmbientState.setStackHeight(
                    MathUtils.lerp(stackEndHeight * StackScrollAlgorithm.START_FRACTION,