summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-10-05 20:53:35 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-10-05 20:53:35 +0000
commit8942ade56961b87e41ebd9ccc1947cc3565bdaa5 (patch)
treefa55bd0e598d7ab4a4a5ca06c2d9350ec3781a99
parent778043049a1c886abbde52b3aa80f990f4ecb05d (diff)
parent49d1a012b657668195d75e4fa5972c03a50fae0e (diff)
Merge "Notify AppOps when notifications are [un]blocked for an app."
-rwxr-xr-xservices/core/java/com/android/server/notification/NotificationManagerService.java2
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)