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

Commit 1a3bf132 authored by Charles He's avatar Charles He Committed by Android (Google) Code Review
Browse files

Merge "SystemUI: fix incorrect redaction of profile notifications." into oc-dev

parents 9e6519c7 c37a22aa
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4321,7 +4321,12 @@ public class StatusBar extends SystemUI implements DemoMode,
            final int userId = mCurrentProfiles.valueAt(i).id;
            boolean isProfilePublic = devicePublic;
            if (!devicePublic && userId != mCurrentUserId) {
                if (mStatusBarKeyguardViewManager.isSecure(userId)) {
                // We can't rely on KeyguardManager#isDeviceLocked() for unified profile challenge
                // due to a race condition where this code could be called before
                // TrustManagerService updates its internal records, resulting in an incorrect
                // state being cached in mLockscreenPublicMode. (b/35951989)
                if (mLockPatternUtils.isSeparateProfileChallengeEnabled(userId)
                        && mStatusBarKeyguardViewManager.isSecure(userId)) {
                    isProfilePublic = mKeyguardManager.isDeviceLocked(userId);
                }
            }