Merge "[NotificationManagerService]Support multi users to notification pulse"
This commit is contained in:
@@ -847,8 +847,8 @@ public class NotificationManagerService extends SystemService {
|
|||||||
public void update(Uri uri) {
|
public void update(Uri uri) {
|
||||||
ContentResolver resolver = getContext().getContentResolver();
|
ContentResolver resolver = getContext().getContentResolver();
|
||||||
if (uri == null || NOTIFICATION_LIGHT_PULSE_URI.equals(uri)) {
|
if (uri == null || NOTIFICATION_LIGHT_PULSE_URI.equals(uri)) {
|
||||||
boolean pulseEnabled = Settings.System.getInt(resolver,
|
boolean pulseEnabled = Settings.System.getIntForUser(resolver,
|
||||||
Settings.System.NOTIFICATION_LIGHT_PULSE, 0) != 0;
|
Settings.System.NOTIFICATION_LIGHT_PULSE, 0, UserHandle.USER_CURRENT) != 0;
|
||||||
if (mNotificationPulseEnabled != pulseEnabled) {
|
if (mNotificationPulseEnabled != pulseEnabled) {
|
||||||
mNotificationPulseEnabled = pulseEnabled;
|
mNotificationPulseEnabled = pulseEnabled;
|
||||||
updateNotificationPulse();
|
updateNotificationPulse();
|
||||||
|
|||||||
Reference in New Issue
Block a user