summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/NotificationManagerService.java
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2013-05-16 18:06:36 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-05-16 18:06:36 +0000
commitc037282c1ca0d7589168c73f1cf8b19ecc3ffca4 (patch)
tree4dd450de292257b79600362a86365363f2f443b9 /services/java/com/android/server/NotificationManagerService.java
parent15e102cf3b425484ca4eaf4d8bdab93c30d46f59 (diff)
parent3ec4e7050aabf9a9e42a9c7aec7d61caa2c33ae5 (diff)
Merge "Rebind notification listeners for current user." into jb-mr2-dev
Diffstat (limited to 'services/java/com/android/server/NotificationManagerService.java')
-rw-r--r--services/java/com/android/server/NotificationManagerService.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java
index fac1fe83ed1c..f9b6eba68b60 100644
--- a/services/java/com/android/server/NotificationManagerService.java
+++ b/services/java/com/android/server/NotificationManagerService.java
@@ -537,13 +537,14 @@ public class NotificationManagerService extends INotificationManager.Stub
* is altered. (For example in response to USER_SWITCHED in our broadcast receiver)
*/
void rebindListenerServices() {
- String flat = Settings.Secure.getString(
+ final int currentUser = ActivityManager.getCurrentUser();
+ String flat = Settings.Secure.getStringForUser(
mContext.getContentResolver(),
- Settings.Secure.ENABLED_NOTIFICATION_LISTENERS);
+ Settings.Secure.ENABLED_NOTIFICATION_LISTENERS,
+ currentUser);
NotificationListenerInfo[] toRemove = new NotificationListenerInfo[mListeners.size()];
final ArrayList<ComponentName> toAdd;
- final int currentUser = ActivityManager.getCurrentUser();
synchronized (mNotificationList) {
// unbind and remove all existing listeners