Merge "Notify AppOps when notifications are [un]blocked for an app." into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b914950d90
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user