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

Commit 7e376970 authored by zhoulei's avatar zhoulei Committed by lei zhou
Browse files

[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: default avatarzhoulei <zhoulei5@xiaomi.com>
parent 8f65e470
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();