Merge "Don't send broadcast to unprepared apps" into sc-dev am: 887a3931ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14531190 Change-Id: I5cded8fa98bddc71922e93788870f2e7019d208a
This commit is contained in:
@@ -2659,6 +2659,7 @@ public class NotificationManagerService extends SystemService {
|
||||
final Set<String> dndApprovedPackages = mConditionProviders.getAllowedPackages();
|
||||
for (String pkg : dndApprovedPackages) {
|
||||
intent.setPackage(pkg);
|
||||
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
|
||||
getContext().sendBroadcastAsUser(intent, UserHandle.ALL);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user