diff options
| author | 2013-05-10 14:41:21 -0400 | |
|---|---|---|
| committer | 2013-05-10 14:49:53 -0400 | |
| commit | 3da7302dd28611bc1741f6ed3138562fea9101b5 (patch) | |
| tree | b339a59a6dc2ed3dc3edcd491c655492b5946315 | |
| parent | 804e618db6240a6c253c0d3eab2232b1823e217a (diff) | |
restart notification listener on package add
Bug: 8813471
Change-Id: Icf6c69811392c4567a5c842740e463fb957e7563
| -rw-r--r-- | services/java/com/android/server/NotificationManagerService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 6b38f89f3879..fac1fe83ed1c 100644 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -1074,7 +1074,8 @@ public class NotificationManagerService extends INotificationManager.Stub boolean queryRestart = false; boolean packageChanged = false; - if (action.equals(Intent.ACTION_PACKAGE_REMOVED) + if (action.equals(Intent.ACTION_PACKAGE_ADDED) + || action.equals(Intent.ACTION_PACKAGE_REMOVED) || action.equals(Intent.ACTION_PACKAGE_RESTARTED) || (packageChanged=action.equals(Intent.ACTION_PACKAGE_CHANGED)) || (queryRestart=action.equals(Intent.ACTION_QUERY_PACKAGE_RESTART)) @@ -1259,6 +1260,7 @@ public class NotificationManagerService extends INotificationManager.Stub filter.addAction(Intent.ACTION_USER_SWITCHED); mContext.registerReceiver(mIntentReceiver, filter); IntentFilter pkgFilter = new IntentFilter(); + pkgFilter.addAction(Intent.ACTION_PACKAGE_ADDED); pkgFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); pkgFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); pkgFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED); |