From 885dde6a2c6cc9fd228ac501326b8ff182723796 Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Mon, 14 Jun 2021 15:15:18 -0400 Subject: [PATCH] Restore shelf clip logic from R to prevent clipping on collapse. Fixes: 187653275 Test: Expand/collapse shade/notification with/without shelf Change-Id: I03024c6a3adfb40f1d585f4bac2644aec9050261 --- .../src/com/android/systemui/statusbar/NotificationShelf.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java index 085a076c5c55f..baac2549055f5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java @@ -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; }