Merge "Log the reason for skipping the broadcast delivery." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5f14b0208b
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user