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

Commit e2cf85a2 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Update notification redacted state for profile.

Put back two missing bits of logic relevant for managed profiles:
1. Update user's public mode when work challenge is unlocked.
2. Update notifications when public mode changes.

This ensures that redacted notifications become readable again
when work profile challenge is unlocked.

Test: manual, using Hangouts in a profile with separate lock
Bug: 128896361
Change-Id: I0aad2df233c8e3f2820dbe69230ba0897ab45ab1
parent b46293f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -525,6 +525,7 @@ public class NotificationLockscreenUserManagerImpl implements
            setLockscreenPublicMode(isProfilePublic, userId);
            mUsersWithSeperateWorkChallenge.put(userId, needsSeparateChallenge);
        }
        getEntryManager().updateNotifications();
    }

    @Override
+0 −1
Original line number Diff line number Diff line
@@ -3133,7 +3133,6 @@ public class StatusBar extends SystemUI implements DemoMode,

            // If the state didn't change, we may still need to update public mode
            mLockscreenUserManager.updatePublicMode();
            mEntryManager.updateNotifications();
        }
        if (mStatusBarStateController.leaveOpenOnKeyguardHide()) {
            if (!mStatusBarStateController.isKeyguardRequested()) {
+1 −0
Original line number Diff line number Diff line
@@ -111,6 +111,7 @@ public class StatusBarRemoteInputCallback implements Callback, Callbacks,
    }

    protected void onWorkChallengeChanged() {
        mLockscreenUserManager.updatePublicMode();
        if (mPendingWorkRemoteInputView != null
                && !mLockscreenUserManager.isAnyProfilePublicMode()) {
            // Expand notification panel and the notification row, then click on remote input view