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
This commit is contained in:
Kevin Han
2020-05-19 15:29:14 -07:00
parent 235f1db1c1
commit 1d05b72624

View File

@@ -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()