summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author zhoulei <zhoulei5@xiaomi.com> 2017-05-24 14:43:04 +0000
committer android-build-merger <android-build-merger@google.com> 2017-05-24 14:43:04 +0000
commitfa3ba65d2444cd37bc867ebbd97952a87e2de69b (patch)
tree74becdb46b587ef8f8dc33b7ff2f38a4233d771a
parent4b6cf3d841925546a2336a76d7b3837054076f4c (diff)
parent19be2ee686977f95013dfe3c882d7a574cc9f504 (diff)
Merge "[NotificationManagerService]Support multi users to notification pulse" am: 8516a2025a
am: 19be2ee686 Change-Id: Ie32bf7de581e0a4ec1cdfe36417c9f8fb512932c
-rw-r--r--services/core/java/com/android/server/notification/NotificationManagerService.java4
1 files 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 43a5eba0356a..c5afe9d7fd96 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();