diff options
| author | 2011-08-06 22:51:56 -0400 | |
|---|---|---|
| committer | 2011-08-06 22:51:56 -0400 | |
| commit | aac0eb08bb2fdb32b2f2e045d74343abe6ae6bf8 (patch) | |
| tree | 014dd09efa6e3d491d3e03577170b02f36593080 | |
| parent | fb87cf606a22ab1056fd7caf9bf1f6d9f9190f51 (diff) | |
Remove notifications when an app is disabled.
Bug: 4998840
Change-Id: Ic0c14105924d815aed78da1f5510c98a2fe1dd77
| -rwxr-xr-x | services/java/com/android/server/NotificationManagerService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 8031c4e1f53e..6edb132eb73c 100755 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -325,6 +325,7 @@ public class NotificationManagerService extends INotificationManager.Stub if (action.equals(Intent.ACTION_PACKAGE_REMOVED) || action.equals(Intent.ACTION_PACKAGE_RESTARTED) + || action.equals(Intent.ACTION_PACKAGE_CHANGED) || (queryRestart=action.equals(Intent.ACTION_QUERY_PACKAGE_RESTART)) || action.equals(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE)) { String pkgList[] = null; @@ -430,6 +431,7 @@ public class NotificationManagerService extends INotificationManager.Stub mContext.registerReceiver(mIntentReceiver, filter); IntentFilter pkgFilter = new IntentFilter(); pkgFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); + pkgFilter.addAction(Intent.ACTION_PACKAGE_CHANGED); pkgFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED); pkgFilter.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART); pkgFilter.addDataScheme("package"); |