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

Commit 4b6c37a3 authored by Hui Peng's avatar Hui Peng Committed by Automerger Merge Worker
Browse files

[Invisalign2] Make BTA_DmBleConfigLocalPrivacy synchronous am: 21fa0c69 am:...

[Invisalign2] Make BTA_DmBleConfigLocalPrivacy synchronous am: 21fa0c69 am: c04c69d5 am: e323c469

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2875614



Change-Id: I729daa8485aff7d45ce7bc602b71961b3faee86e
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 366c2be1 e323c469
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@

#include <vector>

#include "android_bluetooth_flags.h"
#include "bta/dm/bta_dm_disc.h"
#include "bta/dm/bta_dm_int.h"
#include "bta/dm/bta_dm_sec_int.h"
@@ -273,9 +274,13 @@ void BTA_DmBleUpdateConnectionParams(const RawAddress& bd_addr,
 *
 ******************************************************************************/
void BTA_DmBleConfigLocalPrivacy(bool privacy_enable) {
  if (IS_FLAG_ENABLED(synchronous_bta_sec)) {
    bta_dm_ble_config_local_privacy(privacy_enable);
  } else {
    do_in_main_thread(FROM_HERE, base::BindOnce(bta_dm_ble_config_local_privacy,
                                                privacy_enable));
  }
}

/*******************************************************************************
 *