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

Commit c7b847c4 authored by Irina Dumitrescu's avatar Irina Dumitrescu Committed by android-build-merger
Browse files

Merge "Do not show work profile encryption notification if already unlocked."...

Merge "Do not show work profile encryption notification if already unlocked." into qt-dev am: 4fbd956d
am: 35059f31

Change-Id: I4b76447600a8e6894c1c3b6ab0b20f998ea8c0d2
parents 2cb92c9f 35059f31
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -483,6 +483,12 @@ public class LockSettingsService extends ILockSettings.Stub {
            return;
        }

        if (isUserKeyUnlocked(userId)) {
            // If storage is not locked, the user will be automatically unlocked so there is
            // no need to show the notification.
            return;
        }

        final UserHandle userHandle = user.getUserHandle();
        final boolean isSecure = isUserSecure(userId);
        if (isSecure && !mUserManager.isUserUnlockingOrUnlocked(userHandle)) {