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

Commit 9e3ce77c authored by Kevin Han's avatar Kevin Han Committed by Android (Google) Code Review
Browse files

Merge "Actually count explicit broadcasts as usage" into sc-dev

parents 2fe11f12 7839d2d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1652,7 +1652,7 @@ public final class BroadcastQueue {
        maybeScheduleTempAllowlistLocked(receiverUid, r, brOptions);

        // Report that a component is used for explicit broadcasts.
        if (!r.intent.isExcludingStopped() && r.curComponent != null
        if (r.intent.getComponent() != null && r.curComponent != null
                && !TextUtils.equals(r.curComponent.getPackageName(), r.callerPackage)) {
            mService.mUsageStatsService.reportEvent(
                    r.curComponent.getPackageName(), r.userId, Event.APP_COMPONENT_USED);