Fix NotificationStackScrollLayoutController#getVisibleNotificationCount() == 0

Fixes: 208229469
Test: manual/logging
Change-Id: Id1e2387f76a77eab69c79d9e5df1952ee92dd2e2
This commit is contained in:
Jeff DeCew
2021-11-29 20:21:09 +00:00
parent 61a746733a
commit c385c3f75b

View File

@@ -368,6 +368,7 @@ public class NotificationViewHierarchyManager implements DynamicPrivacyControlle
// NOTE: NotificationEntry.isClearable() will internally check group children to ensure
// the group itself definitively clearable.
boolean isClearable = row.getEntry().isClearable();
visibleTopLevelEntries++;
if (isSilent) {
if (isClearable) {
hasClearableSilentNotifs = true;