Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52d40565 authored by zhoulei's avatar zhoulei Committed by android-build-merger
Browse files

Merge "[NotificationManagerService]Support multi users to notification pulse"...

Merge "[NotificationManagerService]Support multi users to notification pulse" am: 8516a202 am: 19be2ee6
am: fa3ba65d

Change-Id: Ib96ed1f7f14ee77cf0dadc28db30c2a5c9845e47
parents fa9293b1 fa3ba65d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -956,8 +956,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();