Previously min priority notifications would be
empty on the lockscreen. We're now showing them
if they are part of a group.
Bug:
117349034
Test: add group with min priority children on lockscreen
Change-Id: I3070e95f63c3b2cf227fbefdb53e3a3d09927ae9
entry.notification) && !entry.row.isRemoved();
boolean showOnKeyguard = mLockscreenUserManager.shouldShowOnKeyguard(entry
.notification);
+ if (!showOnKeyguard) {
+ // min priority notifications should show if their summary is showing
+ if (mGroupManager.isChildInGroupWithSummary(entry.notification)) {
+ ExpandableNotificationRow summary = mGroupManager.getLogicalGroupSummary(
+ entry.notification);
+ if (summary != null && mLockscreenUserManager.shouldShowOnKeyguard(
+ summary.getStatusBarNotification())) {
+ showOnKeyguard = true;
+ }
+ }
+ }
if (suppressedSummary
|| mLockscreenUserManager.shouldHideNotifications(userId)
|| (isLocked && !showOnKeyguard)) {