diff options
| author | Amith Yamasani <yamasani@google.com> | 2012-11-07 21:12:54 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-11-07 21:12:54 -0800 |
| commit | 3fe2cb4db60827889abd1f971910f807ae346488 (patch) | |
| tree | b5fa87a634c187eda9006cd25378b7695d9d63da | |
| parent | de974f6f201a9aed3f811c97edf4db3ecd41eb3d (diff) | |
| parent | 5ec00e930fb4d523ce5784fb336841410d030cef (diff) | |
| download | frameworks_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-x | services/java/com/android/server/NotificationManagerService.java | 4 |
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; } |
