Merge "Fix NotificationStackScrollLayoutController#getVisibleNotificationCount() == 0"

This commit is contained in:
TreeHugger Robot
2021-11-29 23:55:40 +00:00
committed by Android (Google) Code Review

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;