From 6447c38e57068bb53b9ea9ec20ba6f7e28db9cee Mon Sep 17 00:00:00 2001 From: Ioana Alexandru Date: Thu, 13 Mar 2025 08:02:42 -0700 Subject: 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 --- .../systemui/statusbar/notification/row/ExpandableNotificationRow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-59-g8ed1b