From 7e3769708717a94877202b879d80f18055bb1daf Mon Sep 17 00:00:00 2001 From: zhoulei Date: Wed, 17 May 2017 18:41:25 +0800 Subject: [PATCH] [NotificationManagerService]Support multi users to notification pulse Turning off the notification light pulse in main userspace, while all other userspaces would be turned off. Change-Id: I3a3def7c842bcbe026be21b84c4e855d6f9ff50b Signed-off-by: zhoulei --- .../server/notification/NotificationManagerService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index df7c6606435d1..9949af3fe9550 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -847,8 +847,8 @@ public class NotificationManagerService extends SystemService { public void update(Uri uri) { ContentResolver resolver = getContext().getContentResolver(); if (uri == null || NOTIFICATION_LIGHT_PULSE_URI.equals(uri)) { - boolean pulseEnabled = Settings.System.getInt(resolver, - Settings.System.NOTIFICATION_LIGHT_PULSE, 0) != 0; + boolean pulseEnabled = Settings.System.getIntForUser(resolver, + Settings.System.NOTIFICATION_LIGHT_PULSE, 0, UserHandle.USER_CURRENT) != 0; if (mNotificationPulseEnabled != pulseEnabled) { mNotificationPulseEnabled = pulseEnabled; updateNotificationPulse();