Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6447c38e authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

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
parent 51bdda50
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;