Loading services/core/java/com/android/server/LockSettingsService.java +5 −2 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); } } Loading Loading
services/core/java/com/android/server/LockSettingsService.java +5 −2 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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); } } Loading