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

This commit is contained in:
TreeHugger Robot
2021-05-12 23:22:01 +00:00
committed by Android (Google) Code Review

View File

@@ -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,