Skip to content

Commit 078a490

Browse files
author
John Spurlock
committed
Clear notifications properly on ACTION_USER_STOPPED.
Which also takes care of the ACTION_USER_REMOVED case. Bug:7277853 Change-Id: I0a6bade11bd0d420df03e16e69a386cfccfa07cc
1 parent ebf7e28 commit 078a490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/NotificationManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ boolean cancelAllNotificationsInt(String pkg, int mustHaveFlags,
12401240
if ((r.notification.flags & mustNotHaveFlags) != 0) {
12411241
continue;
12421242
}
1243-
if (!r.pkg.equals(pkg)) {
1243+
if (pkg != null && !r.pkg.equals(pkg)) {
12441244
continue;
12451245
}
12461246
canceledSomething = true;

0 commit comments

Comments
 (0)