Merge "Fix group summary suppression logic when without bubbles" into sc-dev

This commit is contained in:
Jeff DeCew
2021-04-21 16:50:44 +00:00
committed by Android (Google) Code Review

View File

@@ -242,12 +242,12 @@ public class NotificationGroupManagerLegacy implements OnHeadsUpChangedListener,
int childCount = 0;
boolean hasBubbles = false;
for (NotificationEntry entry : group.children.values()) {
if (mBubblesOptional.isPresent() && !mBubblesOptional.get()
if (mBubblesOptional.isPresent() && mBubblesOptional.get()
.isBubbleNotificationSuppressedFromShade(
entry.getKey(), entry.getSbn().getGroupKey())) {
childCount++;
} else {
hasBubbles = true;
} else {
childCount++;
}
}