diff options
| author | 2022-11-10 08:07:19 +0000 | |
|---|---|---|
| committer | 2022-11-10 08:07:19 +0000 | |
| commit | 46fa95fc23aca49549f627e20fb8c51cd3ba8882 (patch) | |
| tree | c7899c696a21147e3946f83024b92c898140219b | |
| parent | 98a754b3826b839f31b41daf87060d571dc19e00 (diff) | |
| parent | d95569b44b6d2c002cd150f0a15354ff5ec99268 (diff) | |
Merge "Revert "Revert "Fix notification group dismissal fade animation""" into tm-qpr-dev
2 files changed, 15 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java index de158c4d017e..3021414847c0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java @@ -1511,7 +1511,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView l.setAlpha(alpha); } if (mChildrenContainer != null) { - mChildrenContainer.setAlpha(alpha); + mChildrenContainer.setContentAlpha(alpha); } } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java index 0554fb5b3689..645a02dbda14 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java @@ -495,6 +495,20 @@ public class NotificationChildrenContainer extends ViewGroup } /** + * Sets the alpha on the content, while leaving the background of the container itself as is. + * + * @param alpha alpha value to apply to the content + */ + public void setContentAlpha(float alpha) { + for (int i = 0; i < mNotificationHeader.getChildCount(); i++) { + mNotificationHeader.getChildAt(i).setAlpha(alpha); + } + for (ExpandableNotificationRow child : getAttachedChildren()) { + child.setContentAlpha(alpha); + } + } + + /** * To be called any time the rows have been updated */ public void updateExpansionStates() { |