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

Commit 0e06bc93 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed an issue where USER_ALL notifications were showing

The public mode for USER_ALL notifications were always
showing not on the lockscreen and therefore were visible
even if the user decided otherwise.

Test: runtest systemui
Change-Id: Ie4b312b0013df7d5ece81f89f754644efb66fe21
Fixes: 62259623
parent 9c1b222f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6084,6 +6084,9 @@ public class StatusBar extends SystemUI implements DemoMode,
    }

    public boolean isLockscreenPublicMode(int userId) {
        if (userId == UserHandle.USER_ALL) {
            return mLockscreenPublicMode.get(mCurrentUserId, false);
        }
        return mLockscreenPublicMode.get(userId, false);
    }