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

Commit a5c5df70 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "btif: fix bond state callback state mismatch" am: 1b21e291 am: 53501ea3 am: 949def4b

parents f0b3d0e6 949def4b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1168,8 +1168,10 @@ 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 || is_bonded_device_removed) {
      bond_state_changed(status, bd_addr, state);
    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);
    }
  }
}