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

Commit 44d77dad authored by Liang Li's avatar Liang Li Committed by Android (Google) Code Review
Browse files

Merge "Skip pulling UwbActivityInfo if UWB service is not available" into udc-dev

parents 12bb293b 08e8c93d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1004,7 +1004,8 @@ public class StatsPullAtomService extends SystemService {
    }

    private void initAndRegisterDeferredPullers() {
        mUwbManager = mContext.getSystemService(UwbManager.class);
        mUwbManager = mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_UWB)
            ? mContext.getSystemService(UwbManager.class) : null;

        registerUwbActivityInfo();
    }
@@ -2172,6 +2173,9 @@ public class StatsPullAtomService extends SystemService {
    }

    private void registerUwbActivityInfo() {
        if (mUwbManager == null) {
            return;
        }
        int tagId = FrameworkStatsLog.UWB_ACTIVITY_INFO;
        mStatsManager.setPullAtomCallback(
                tagId,