From 078a490c2276c91ab84536d603c7848dc244e330 Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Thu, 4 Oct 2012 12:00:53 -0400 Subject: Clear notifications properly on ACTION_USER_STOPPED. Which also takes care of the ACTION_USER_REMOVED case. Bug:7277853 Change-Id: I0a6bade11bd0d420df03e16e69a386cfccfa07cc --- services/java/com/android/server/NotificationManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 5d5f8d37d222..8d6c60446a8a 100755 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -1240,7 +1240,7 @@ public class NotificationManagerService extends INotificationManager.Stub if ((r.notification.flags & mustNotHaveFlags) != 0) { continue; } - if (!r.pkg.equals(pkg)) { + if (pkg != null && !r.pkg.equals(pkg)) { continue; } canceledSomething = true; -- cgit v1.2.3-59-g8ed1b