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

Commit 83e91723 authored by Yuyang Huang's avatar Yuyang Huang Committed by Gerrit Code Review
Browse files

Merge "improve HFP logging" into main

parents ef67f49f 24eabf35
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -847,7 +847,6 @@ public class HeadsetService extends ProfileService {
            Log.w(TAG, "getHeadsetService(): service is not available");
            return null;
        }
        logD("getHeadsetService(): returning " + sHeadsetService);
        return sHeadsetService;
    }

@@ -1341,7 +1340,7 @@ public class HeadsetService extends ProfileService {
        synchronized (mStateMachines) {
            final HeadsetStateMachine stateMachine = mStateMachines.get(device);
            if (stateMachine == null) {
                Log.e(TAG, "getHfpCallAudioPolicy(), " + device + " does not have a state machine");
                Log.w(TAG, "getHfpCallAudioPolicy(), " + device + " does not have a state machine");
                return null;
            }
            return stateMachine.getHfpCallAudioPolicy();