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

Commit 8bc7ee47 authored by Palash Ahuja's avatar Palash Ahuja Committed by Automerger Merge Worker
Browse files

Merge "Adding the state transition for BOND_NONE state in the native layer"...

Merge "Adding the state transition for BOND_NONE state in the native layer" into main am: d9cd5f81 am: efc9968f

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



Change-Id: I6b8562f20b19468868511cce603e724b5fe2b99d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a7ad6f25 efc9968f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -564,6 +564,12 @@ static void bond_state_changed(bt_status_t status, const RawAddress& bd_addr,

  if (pairing_cb.bond_type == BOND_TYPE_TEMPORARY) {
    state = BT_BOND_STATE_NONE;
  } else {
    if (state == BT_BOND_STATE_NONE) {
      bluetooth::os::LogMetricBluetoothEvent(ToGdAddress(bd_addr),
                                             android::bluetooth::EventType::BOND,
                                             android::bluetooth::State::STATE_NONE);
    }
  }

  log::info(