Merge "Check if pref is disabled by admin" into sc-v2-dev am: 87b3974dfd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16199770 Change-Id: I670cde971b45484e54b951a90e507acc7ef0c1dc
This commit is contained in:
@@ -178,7 +178,8 @@ public class RedactNotificationPreferenceController extends TogglePreferenceCont
|
||||
|
||||
private boolean getAllowPrivateNotifications(int userId) {
|
||||
return Settings.Secure.getIntForUser(mContext.getContentResolver(),
|
||||
LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 1, userId) != 0;
|
||||
LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 1, userId) != 0
|
||||
&& getEnforcedAdmin(userId) == null;
|
||||
}
|
||||
|
||||
private boolean getLockscreenNotificationsEnabled(int userId) {
|
||||
|
Reference in New Issue
Block a user