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

Commit ad916b23 authored by Liang Li's avatar Liang Li Committed by Automerger Merge Worker
Browse files

Merge "Skip pulling UwbActivityInfo if UWB service is not available" into udc-dev am: 44d77dad

parents b96fa811 44d77dad
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -1004,7 +1004,8 @@ public class StatsPullAtomService extends SystemService {
    }
    }


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


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


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