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

Commit da30a03d authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Hide notifications when occluded and disabled on keyguard

Bug: 17371021
Change-Id: I27769a2334285fe753a3ee5ce55986d4fd23b83c
parent 038839e9
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1623,10 +1623,11 @@ public abstract class BaseStatusBar extends SystemUI implements
                }
            }
            boolean showOnKeyguard = shouldShowOnKeyguard(entry.notification);
            if (onKeyguard && (visibleNotifications >= maxKeyguardNotifications
                    || !showOnKeyguard)) {
            if ((isLockscreenPublicMode() && !showOnKeyguard) ||
                    (onKeyguard && (visibleNotifications >= maxKeyguardNotifications
                            || !showOnKeyguard))) {
                entry.row.setVisibility(View.GONE);
                if (showOnKeyguard) {
                if (onKeyguard && showOnKeyguard) {
                    mKeyguardIconOverflowContainer.getIconsView().addNotification(entry);
                }
            } else {