Merge "Do not count suppressed group summaries when checking for notifications." into sc-qpr1-dev am: 1af769fb15

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15899164

Change-Id: Iac4120c67fb19b67333a5791e3ce4458ed47588b
This commit is contained in:
Jeff DeCew
2021-09-27 16:11:16 +00:00
committed by Automerger Merge Worker

View File

@@ -173,6 +173,7 @@ public class NotificationStackScrollLayoutController {
private final NotificationLockscreenUserManager mLockscreenUserManager;
// TODO: StatusBar should be encapsulated behind a Controller
private final StatusBar mStatusBar;
private final NotificationGroupManagerLegacy mLegacyGroupManager;
private final SectionHeaderController mSilentHeaderController;
private final LockscreenShadeTransitionController mLockscreenShadeTransitionController;
@@ -663,6 +664,8 @@ public class NotificationStackScrollLayoutController {
mStatusBar.requestNotificationUpdate("onGroupsChanged");
}
});
mLegacyGroupManager = featureFlags.isNewNotifPipelineRenderingEnabled()
? null : legacyGroupManager;
mSilentHeaderController = silentHeaderController;
mFeatureFlags = featureFlags;
mNotifPipeline = notifPipeline;
@@ -1223,7 +1226,11 @@ public class NotificationStackScrollLayoutController {
final boolean inSection =
NotificationStackScrollLayout.matchesSelection(row, selection);
if (matchClearable && inSection) {
return true;
if (mLegacyGroupManager == null
|| !mLegacyGroupManager.isSummaryOfSuppressedGroup(
row.getEntry().getSbn())) {
return true;
}
}
}
return false;