diff options
| author | DvTonder <david.vantonder@gmail.com> | 2013-02-03 11:12:45 -0500 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@review.cyanogenmod.com> | 2013-02-06 16:33:05 -0800 |
| commit | 8a9da10f115f7455cc0af3a18452137b041d00f7 (patch) | |
| tree | d0a6e4639899a8bf04dbf484b9769bdf6e9e042a /services/java/com/android/server/NotificationManagerService.java | |
| parent | ce5a0633bda719997c3c64ce7434e7335a5733cc (diff) | |
| download | frameworks_base-8a9da10f115f7455cc0af3a18452137b041d00f7.zip frameworks_base-8a9da10f115f7455cc0af3a18452137b041d00f7.tar.gz frameworks_base-8a9da10f115f7455cc0af3a18452137b041d00f7.tar.bz2 | |
Framework: Enable multi-user support for Notification light
Change-Id: I4fb84fdb0c9e1592c2a421011c303a789cde8c8c
Diffstat (limited to 'services/java/com/android/server/NotificationManagerService.java')
| -rwxr-xr-x | services/java/com/android/server/NotificationManagerService.java | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index d91c343..05be8b3 100755 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -630,27 +630,31 @@ public class NotificationManagerService extends INotificationManager.Stub public void update() { ContentResolver resolver = mContext.getContentResolver(); // LED enabled - mNotificationPulseEnabled = Settings.System.getInt(resolver, - Settings.System.NOTIFICATION_LIGHT_PULSE, 0) != 0; + mNotificationPulseEnabled = Settings.System.getIntForUser(resolver, + Settings.System.NOTIFICATION_LIGHT_PULSE, 0, UserHandle.USER_CURRENT) != 0; // LED default color - mDefaultNotificationColor = Settings.System.getInt(resolver, - Settings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_COLOR, mDefaultNotificationColor); + mDefaultNotificationColor = Settings.System.getIntForUser(resolver, + Settings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_COLOR, mDefaultNotificationColor, + UserHandle.USER_CURRENT); // LED default on MS - mDefaultNotificationLedOn = Settings.System.getInt(resolver, - Settings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_ON, mDefaultNotificationLedOn); + mDefaultNotificationLedOn = Settings.System.getIntForUser(resolver, + Settings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_ON, mDefaultNotificationLedOn, + UserHandle.USER_CURRENT); // LED default off MS - mDefaultNotificationLedOff = Settings.System.getInt(resolver, - Settings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_OFF, mDefaultNotificationLedOff); + mDefaultNotificationLedOff = Settings.System.getIntForUser(resolver, + Settings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_OFF, mDefaultNotificationLedOff, + UserHandle.USER_CURRENT); // LED custom notification colors mNotificationPulseCustomLedValues.clear(); - if (Settings.System.getInt(resolver, - Settings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE, 0) != 0) { - parseNotificationPulseCustomValuesString(Settings.System.getString(resolver, - Settings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES)); + if (Settings.System.getIntForUser(resolver, + Settings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE, 0, + UserHandle.USER_CURRENT) != 0) { + parseNotificationPulseCustomValuesString(Settings.System.getStringForUser(resolver, + Settings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES, UserHandle.USER_CURRENT)); } } } |
