am 081c36de: am bfb8a7b1: am 3fe2cb4d: Merge "Don\'t cancel any notifications that are meant for all users, if no package is specified." into jb-mr1-dev
* commit '081c36ded6a562ae2bde4238592a1e7bc13ba151': Don't cancel any notifications that are meant for all users, if no package is specified.
This commit is contained in:
@@ -1261,6 +1261,10 @@ public class NotificationManagerService extends INotificationManager.Stub
|
|||||||
if (!notificationMatchesUserId(r, userId)) {
|
if (!notificationMatchesUserId(r, userId)) {
|
||||||
continue;
|
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) {
|
if ((r.notification.flags & mustHaveFlags) != mustHaveFlags) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user