Merge "Restore shelf clip logic from R to prevent clipping on collapse." into sc-dev am: fe9b6d5e0d am: 5cec2ce940

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14958562

Change-Id: Iddccc37dd547858b9766ad1e062ac4b00357852c
This commit is contained in:
Jeff DeCew
2021-06-15 16:32:00 +00:00
committed by Automerger Merge Worker

View File

@@ -259,11 +259,9 @@ public class NotificationShelf extends ActivatableNotificationView implements
final float inShelfAmount = updateShelfTransformation(i, child, scrollingFast,
expandingAnimated, isLastChild);
final float stackEnd = mAmbientState.getStackY()
+ mAmbientState.getStackHeight();
// TODO(b/172289889) scale mPaddingBetweenElements with expansion amount
if ((isLastChild && !child.isInShelf()) || aboveShelf || backgroundForceHidden) {
notificationClipEnd = stackEnd;
notificationClipEnd = shelfStart + getIntrinsicHeight();
} else {
notificationClipEnd = shelfStart - mPaddingBetweenElements;
}