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

Commit 117e5825 authored by Kevin Han's avatar Kevin Han Committed by Automerger Merge Worker
Browse files

Merge "Actually count explicit broadcasts as usage" into sc-dev am: 9e3ce77c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15179083

Change-Id: I5d54f0ec7fa0655f5dac012f04a47ebf8a63a87f
parents f5ff9a04 9e3ce77c
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);