summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-11-07 21:12:54 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-11-07 21:12:54 -0800
commit3fe2cb4db60827889abd1f971910f807ae346488 (patch)
treeb5fa87a634c187eda9006cd25378b7695d9d63da
parentde974f6f201a9aed3f811c97edf4db3ecd41eb3d (diff)
parent5ec00e930fb4d523ce5784fb336841410d030cef (diff)
downloadframeworks_base-3fe2cb4db60827889abd1f971910f807ae346488.zip
frameworks_base-3fe2cb4db60827889abd1f971910f807ae346488.tar.gz
frameworks_base-3fe2cb4db60827889abd1f971910f807ae346488.tar.bz2
Merge "Don't cancel any notifications that are meant for all users, if no package is specified." into jb-mr1-dev
-rwxr-xr-xservices/java/com/android/server/NotificationManagerService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java
index 0e171cd..216323e 100755
--- a/services/java/com/android/server/NotificationManagerService.java
+++ b/services/java/com/android/server/NotificationManagerService.java
@@ -1261,6 +1261,10 @@ public class NotificationManagerService extends INotificationManager.Stub
if (!notificationMatchesUserId(r, userId)) {
continue;
}
+ // Don't remove notifications to all, if there's no package name specified
+ if (r.userId == UserHandle.USER_ALL && pkg == null) {
+ continue;
+ }
if ((r.notification.flags & mustHaveFlags) != mustHaveFlags) {
continue;
}