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

Commit 5f14b020 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Log the reason for skipping the broadcast delivery." into udc-dev

parents 663fdde3 b6805f98
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -691,10 +691,10 @@ class BroadcastQueueModernImpl extends BroadcastQueue {

            // If this receiver is going to be skipped, skip it now itself and don't even enqueue
            // it.
            final boolean wouldBeSkipped = (mSkipPolicy.shouldSkipMessage(r, receiver) != null);
            if (wouldBeSkipped) {
            final String skipReason = mSkipPolicy.shouldSkipMessage(r, receiver);
            if (skipReason != null) {
                setDeliveryState(null, null, r, i, receiver, BroadcastRecord.DELIVERY_SKIPPED,
                        "skipped by policy at enqueue");
                        "skipped by policy at enqueue: " + skipReason);
                continue;
            }