Skip to content

Commit

Permalink
[Invisalign2] Make BTA_DmBleConfigLocalPrivacy synchronous am: 21fa0c6
Browse files Browse the repository at this point in the history
…am: c04c69d

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

Change-Id: I3057ef224b279214bf149e22722e6f4e62e78c71
Signed-off-by: Automerger Merge Worker <[email protected]>
  • Loading branch information
benquike authored and android-build-merge-worker-robot committed Dec 14, 2023
2 parents 9c31835 + c04c69d commit e323c46
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions system/bta/dm/bta_dm_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -273,8 +274,12 @@ void BTA_DmBleUpdateConnectionParams(const RawAddress& bd_addr,
*
******************************************************************************/
void BTA_DmBleConfigLocalPrivacy(bool privacy_enable) {
do_in_main_thread(FROM_HERE, base::BindOnce(bta_dm_ble_config_local_privacy,
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));
}
}

/*******************************************************************************
Expand Down

0 comments on commit e323c46

Please sign in to comment.