Fix group summary suppression logic when without bubbles
The current logic of updateSuppression() concludes there is no child
notification when there is no Bubbles defined.
Bug: 161980186
Bug: 174623537
Test: atest SystemUITests:com.android.systemui.statusbar.notification
Change-Id: Iad4ea8117ef9bd7f813854eb6ed353df64fbdedd
Merged-In: Iad4ea8117ef9bd7f813854eb6ed353df64fbdedd
(cherry picked from commit da2ab11551)
This commit is contained in:
committed by
Jeff DeCew
parent
1abb5dc24e
commit
e33cf0dfc0
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user