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

Commit bae78262 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Disable HSP profile during BT turn off"

parents ddf6320b d60b3b00
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1480,7 +1480,11 @@ static void cleanup(void) {
  BTIF_TRACE_EVENT("%s", __func__);

  if (bt_hf_callbacks) {
#if (defined(BTIF_HF_SERVICES) && (BTIF_HF_SERVICES & BTA_HFP_SERVICE_MASK))
    btif_disable_service(BTA_HFP_SERVICE_ID);
#else
    btif_disable_service(BTA_HSP_SERVICE_ID);
#endif
    bt_hf_callbacks = NULL;
  }
}