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

Commit b6805f98 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Log the reason for skipping the broadcast delivery.

Bug: 286616337
Test: manual
Change-Id: I46ad35b5768c878f471413e02d24b64015b323e0
parent 7b4ea8e2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -682,10 +682,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;
            }