Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bf2d203 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed groups with min priority children

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
parent 3088766a
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -327,6 +327,17 @@ public class NotificationViewHierarchyManager {
                    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)) {