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

Commit 984bdfe8 authored by Ying Hsu's avatar Ying Hsu Committed by Gerrit Code Review
Browse files

Merge "Revert "btif: fix bond state callback state mismatch""

parents a60a5c5c b5012786
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1205,10 +1205,8 @@ static void btif_dm_auth_cmpl_evt(tBTA_DM_AUTH_CMPL* p_auth_cmpl) {
    }
    // Report bond state change to java only if we are bonding to a device or
    // a device is removed from the pairing list.
    if (pairing_cb.state == BT_BOND_STATE_BONDING) {
      bond_state_changed(status, bd_addr, BT_BOND_STATE_BONDING);
    } else if (is_bonded_device_removed) {
      bond_state_changed(status, bd_addr, BT_BOND_STATE_NONE);
    if (pairing_cb.state == BT_BOND_STATE_BONDING || is_bonded_device_removed) {
      bond_state_changed(status, bd_addr, state);
    }
  }
}