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

Commit d7334b28 authored by Jeremy Wu's avatar Jeremy Wu
Browse files

HFP: fix parameter to `ConnectAudio`

In a previous CL to rework the function, we missed fixing one caller
from passing a boolean to an integer. While that causes no harm
(since false is 0), we make the change in this CL.

Bug: 269970706
Test: cq
Change-Id: I7c6d11c7dce4047304169f10c91040eda29f8d27
parent e1aabebe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -583,7 +583,7 @@ static jboolean connectAudioNative(JNIEnv* env, jobject object,
  ALOGI("%s: device %s", __func__,
        ADDRESS_TO_LOGGABLE_CSTR(*((RawAddress*)addr)));
  bt_status_t status =
      sBluetoothHfpInterface->ConnectAudio((RawAddress*)addr, false);
      sBluetoothHfpInterface->ConnectAudio((RawAddress*)addr, 0);
  if (status != BT_STATUS_SUCCESS) {
    ALOGE("Failed HF audio connection, status: %d", status);
  }