Merge "Notify AppOps when notifications are [un]blocked for an app." into rvc-qpr-dev am: b914950d90

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12766705

Change-Id: Id3ff090c8cbf6f356e84acfd45d791c0d95b474a
This commit is contained in:
TreeHugger Robot
2020-10-06 18:34:44 +00:00
committed by Automerger Merge Worker

View File

@@ -3056,6 +3056,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)