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

Commit d5af7f4a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add warning message when sending clcc response but mBluetoothHeadset is null" into sc-dev

parents bae76494 51b6fc42
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ import android.text.TextUtils;
import android.util.Log;

import com.android.bluetooth.hfp.BluetoothHeadsetProxy;
import com.android.bluetooth.hfp.HeadsetService;

import androidx.annotation.VisibleForTesting;

@@ -667,7 +668,14 @@ public class BluetoothInCallService extends InCallService {
                            + addressType);
        }

        if (mBluetoothHeadset != null) {
        if (mBluetoothHeadset == null) {
            Log.w(TAG, "mBluetoothHeasdset is null when sending clcc for BluetoothCall "
                    + index + ", "
                    + direction + ", "
                    + state + ", "
                    + isPartOfConference + ", "
                    + addressType);
        } else {
            mBluetoothHeadset.clccResponse(
                    index, direction, state, 0, isPartOfConference, address, addressType);
        }