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

Commit fdf4bc0b authored by Chienyuan's avatar Chienyuan
Browse files

Run AddressCache::init in jni thread

Bug: 216287845
Bug: 218664443
Tag: #refactor
Test: gd/cert/run
Change-Id: I666db000464af2a210541ab7e744be9462118484
parent 9d718b1d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -132,7 +132,9 @@ void BleScannerInterfaceImpl::Scan(bool start) {
  BTM_LogHistory(
      kBtmLogTag, RawAddress::kEmpty,
      base::StringPrintf("Le scan %s", (start) ? "started" : "stopped"));
  address_cache_.init();
  do_in_jni_thread(FROM_HERE,
                   base::Bind(&BleScannerInterfaceImpl::AddressCache::init,
                              base::Unretained(&address_cache_)));
}

  /** Setup scan filter params */