Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c25cabc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't send broadcast to unprepared apps" into sc-dev am: 887a3931 am: 7d73c2d9

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

Change-Id: Ib80101246884d13543d6d33a4cd5cf4b6cfcd4be
parents 0fc9cd32 7d73c2d9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
        }
    }