From 1d05b726240d57d49753a2420701642757297dee Mon Sep 17 00:00:00 2001 From: Kevin Han Date: Tue, 19 May 2020 15:29:14 -0700 Subject: [PATCH] Add animateAlpha to add/remove animations Adding/removing notifications may push other group children beyond the edge of the group container which should have an alpha effect applied as it clips out. So we add animateAlpha to add/remove to keep this animation. Bug: 150717795 Test: manual, post group, add notification, watch child clip out animation Change-Id: Id7e354934f1df86470114277b954f42ad09df562 --- .../notification/stack/NotificationStackScrollLayout.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index 3db4b6f7ffbb7..e33cc6027c4f3 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -5983,6 +5983,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd // ANIMATION_TYPE_ADD new AnimationFilter() + .animateAlpha() .animateHeight() .animateTopInset() .animateY() @@ -5991,6 +5992,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd // ANIMATION_TYPE_REMOVE new AnimationFilter() + .animateAlpha() .animateHeight() .animateTopInset() .animateY()