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

Commit 9e41e12e authored by Chienyuan's avatar Chienyuan
Browse files

Shim: Do own address read callback in JNI thread

Bug: 231748686
Tag: #refactor
Test: gd/cert/run
Change-Id: I1f8957cbcc8ca4191ce2951804f0bf9925fd2a0d
(cherry picked from commit 7cccea6a)
parent 108bffa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ class BleAdvertiserInterfaceImpl : public BleAdvertiserInterface,

  void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) override {
    LOG(INFO) << __func__ << " in shim layer";
    address_callbacks_[advertiser_id] = cb;
    address_callbacks_[advertiser_id] = jni_thread_wrapper(FROM_HERE, cb);
    bluetooth::shim::GetAdvertising()->GetOwnAddress(advertiser_id);
  }