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

Commit fe4986b0 authored by William Escande's avatar William Escande
Browse files

Cleanup hfp callback during cleanup call

We don't need to call do_in_jni_thread because the cleanup method is
already call by jni_thread

Test: Factory reset test
Bug: 245063086
Change-Id: I85f4b75649e845c219d02ef7e249437e463e8e34
parent c7dcb096
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1428,7 +1428,8 @@ void HeadsetInterface::Cleanup() {
    btif_disable_service(BTA_HSP_SERVICE_ID);
  }
#endif
  do_in_jni_thread(FROM_HERE, base::Bind([]() { bt_hf_callbacks = nullptr; }));

  bt_hf_callbacks = nullptr;
}

bt_status_t HeadsetInterface::SetScoOffloadEnabled(bool value) {