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

Commit a6943306 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Hide work messages even when main user isn't secure"

parents 22b2a81f 50a9ad2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1485,7 +1485,7 @@ public abstract class BaseStatusBar extends SystemUI implements
     */
    @Override  // NotificationData.Environment
    public boolean shouldHideNotifications(int userId) {
        return isLockscreenPublicMode(mCurrentUserId) && !userAllowsNotificationsInPublic(userId)
        return isLockscreenPublicMode(userId) && !userAllowsNotificationsInPublic(userId)
                || (userId != mCurrentUserId && shouldHideNotifications(mCurrentUserId));
    }