Merge "Use primary user's LOCK_SCREEN_SHOW_NOTIFICATIONS."
This commit is contained in:
committed by
Android (Google) Code Review
commit
2fcd7a1cd3
@@ -148,8 +148,10 @@ public class VisibilityPreferenceController extends NotificationPreferenceContro
|
||||
}
|
||||
|
||||
private boolean getLockscreenNotificationsEnabled() {
|
||||
return Settings.Secure.getInt(mContext.getContentResolver(),
|
||||
Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0) != 0;
|
||||
final UserInfo parentUser = mUm.getProfileParent(UserHandle.myUserId());
|
||||
final int primaryUserId = parentUser != null ? parentUser.id : UserHandle.myUserId();
|
||||
return Settings.Secure.getIntForUser(mContext.getContentResolver(),
|
||||
Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0, primaryUserId) != 0;
|
||||
}
|
||||
|
||||
private boolean getLockscreenAllowPrivateNotifications() {
|
||||
|
Reference in New Issue
Block a user