summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ioana Alexandru <aioana@google.com> 2025-03-13 08:02:42 -0700
committer Ioana Alexandru <aioana@google.com> 2025-03-13 08:02:42 -0700
commit6447c38e57068bb53b9ea9ec20ba6f7e28db9cee (patch)
tree0f8a28db29b7a504a53c84e138cbbbbc3ae84ecf
parent51bdda50d1741d627bbb2f101c14a0f561b5aba0 (diff)
Enable group child bg fix when redesign flag is on
The child background also causes issues for the redesign, so let's enable this fix even if the transparency flag is off. Fix: 398804267 Bug: 378660052 Test: manually tested that the icon no longer gets cut off Flag: android.app.notifications_redesign_templates Change-Id: Ia4b78456a79becb9dbcef17dd1fafb126cbb9d68
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java3
1 files changed, 2 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 86ef0ff2a51e..0661b1c3638d 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
@@ -4007,7 +4007,8 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
}
} else if (isChildInGroup()) {
final int childColor = getShowingLayout().getBackgroundColorForExpansionState();
- if (Flags.notificationRowTransparency() && childColor == Color.TRANSPARENT) {
+ if ((Flags.notificationRowTransparency() || notificationsRedesignTemplates())
+ && childColor == Color.TRANSPARENT) {
// If child is not customizing its background color, switch from the parent to
// the child background when the expansion finishes.
mShowNoBackground = !mNotificationParent.mShowNoBackground;