Merge "Send ACTION_PENDING_INCIDENT_REPORTS_CHANGED broadcast with flags" into rvc-dev am: ed508bb1dc am: 0fc6303135

Change-Id: I6f5b4f05bdadd6ba4c251d95650d55e120ce8fbd
This commit is contained in:
TreeHugger Robot
2020-03-27 20:11:37 +00:00
committed by Automerger Merge Worker

View File

@@ -359,6 +359,8 @@ class PendingReports {
private void sendBroadcast(ComponentName receiver, int primaryUser) {
final Intent intent = new Intent(Intent.ACTION_PENDING_INCIDENT_REPORTS_CHANGED);
intent.setComponent(receiver);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
final BroadcastOptions options = BroadcastOptions.makeBasic();
options.setBackgroundActivityStartsAllowed(true);