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

Commit 23abc598 authored by Benjamin Franz's avatar Benjamin Franz Committed by Android (Google) Code Review
Browse files

Merge "Don't show the unlock notification when Work mode is off" into nyc-dev

parents 2f4c2299 f52709c4
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -261,7 +261,9 @@ public class LockSettingsService extends ILockSettings.Stub {
                    showEncryptionNotification(userHandle);
                } else {
                    UserInfo parent = mUserManager.getProfileParent(user.id);
                    if (parent != null && mUserManager.isUserUnlocked(parent.getUserHandle())) {
                    if (parent != null &&
                            mUserManager.isUserUnlocked(parent.getUserHandle()) &&
                            !mUserManager.isQuietModeEnabled(userHandle)) {
                        // Only show notifications for managed profiles once their parent
                        // user is unlocked.
                        showEncryptionNotificationForProfile(userHandle);
@@ -348,7 +350,8 @@ public class LockSettingsService extends ILockSettings.Stub {
            UserInfo profile = profiles.get(i);
            if (profile.isManagedProfile()) {
                UserHandle userHandle = profile.getUserHandle();
                if (!mUserManager.isUserUnlocked(userHandle)) {
                if (!mUserManager.isUserUnlocked(userHandle) &&
                        !mUserManager.isQuietModeEnabled(userHandle)) {
                    showEncryptionNotificationForProfile(userHandle);
                }
            }