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

Commit 55d95e71 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Automerger Merge Worker
Browse files

Merge "Log the reason for skipping the broadcast delivery." into udc-dev am: 5f14b020

parents 64622013 5f14b020
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line 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
            // If this receiver is going to be skipped, skip it now itself and don't even enqueue
            // it.
            // it.
            final boolean wouldBeSkipped = (mSkipPolicy.shouldSkipMessage(r, receiver) != null);
            final String skipReason = mSkipPolicy.shouldSkipMessage(r, receiver);
            if (wouldBeSkipped) {
            if (skipReason != null) {
                setDeliveryState(null, null, r, i, receiver, BroadcastRecord.DELIVERY_SKIPPED,
                setDeliveryState(null, null, r, i, receiver, BroadcastRecord.DELIVERY_SKIPPED,
                        "skipped by policy at enqueue");
                        "skipped by policy at enqueue: " + skipReason);
                continue;
                continue;
            }
            }