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

Commit b8aa5099 authored by Benjamin Franz's avatar Benjamin Franz Committed by android-build-merger
Browse files

Merge "Don\'t show the unlock notification when Work mode is off" into nyc-dev am: 23abc598

am: 12e4b331

* commit '12e4b331':
  Don't show the unlock notification when Work mode is off

Change-Id: Id8c845dabdd5b4b00aba804bc76b9fc36978d692
parents e4c5d394 12e4b331
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);
                }
            }