diff options
| author | 2020-10-05 20:53:35 +0000 | |
|---|---|---|
| committer | 2020-10-05 20:53:35 +0000 | |
| commit | 8942ade56961b87e41ebd9ccc1947cc3565bdaa5 (patch) | |
| tree | fa55bd0e598d7ab4a4a5ca06c2d9350ec3781a99 | |
| parent | 778043049a1c886abbde52b3aa80f990f4ecb05d (diff) | |
| parent | 49d1a012b657668195d75e4fa5972c03a50fae0e (diff) | |
Merge "Notify AppOps when notifications are [un]blocked for an app."
| -rwxr-xr-x | services/core/java/com/android/server/notification/NotificationManagerService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 98a27228c7cc..4da5fad26960 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -3084,6 +3084,8 @@ public class NotificationManagerService extends SystemService { UserHandle.getUserId(uid), REASON_PACKAGE_BANNED, null); } + mAppOps.setMode(AppOpsManager.OP_POST_NOTIFICATION, uid, pkg, + enabled ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_IGNORED); try { getContext().sendBroadcastAsUser( new Intent(ACTION_APP_BLOCK_STATE_CHANGED) |