Merge "Do not count suppressed group summaries when checking for notifications." into sc-qpr1-dev
This commit is contained in:
@@ -171,6 +171,7 @@ public class NotificationStackScrollLayoutController {
|
|||||||
private final NotificationLockscreenUserManager mLockscreenUserManager;
|
private final NotificationLockscreenUserManager mLockscreenUserManager;
|
||||||
// TODO: StatusBar should be encapsulated behind a Controller
|
// TODO: StatusBar should be encapsulated behind a Controller
|
||||||
private final StatusBar mStatusBar;
|
private final StatusBar mStatusBar;
|
||||||
|
private final NotificationGroupManagerLegacy mLegacyGroupManager;
|
||||||
private final SectionHeaderController mSilentHeaderController;
|
private final SectionHeaderController mSilentHeaderController;
|
||||||
private final LockscreenShadeTransitionController mLockscreenShadeTransitionController;
|
private final LockscreenShadeTransitionController mLockscreenShadeTransitionController;
|
||||||
|
|
||||||
@@ -651,6 +652,8 @@ public class NotificationStackScrollLayoutController {
|
|||||||
mStatusBar.requestNotificationUpdate("onGroupsChanged");
|
mStatusBar.requestNotificationUpdate("onGroupsChanged");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
mLegacyGroupManager = featureFlags.isNewNotifPipelineRenderingEnabled()
|
||||||
|
? null : legacyGroupManager;
|
||||||
mSilentHeaderController = silentHeaderController;
|
mSilentHeaderController = silentHeaderController;
|
||||||
mFeatureFlags = featureFlags;
|
mFeatureFlags = featureFlags;
|
||||||
mNotifPipeline = notifPipeline;
|
mNotifPipeline = notifPipeline;
|
||||||
@@ -1193,7 +1196,11 @@ public class NotificationStackScrollLayoutController {
|
|||||||
final boolean inSection =
|
final boolean inSection =
|
||||||
NotificationStackScrollLayout.matchesSelection(row, selection);
|
NotificationStackScrollLayout.matchesSelection(row, selection);
|
||||||
if (matchClearable && inSection) {
|
if (matchClearable && inSection) {
|
||||||
return true;
|
if (mLegacyGroupManager == null
|
||||||
|
|| !mLegacyGroupManager.isSummaryOfSuppressedGroup(
|
||||||
|
row.getEntry().getSbn())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user