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

Commit e88a20f1 authored by Zhihai Xu's avatar Zhihai Xu Committed by Android Git Automerger
Browse files

am ae5624a7: Merge "DO NOT MERGE the HID device state is out of sync after upair." into klp-dev

* commit 'ae5624a7':
  DO NOT MERGE the HID device state is out of sync after upair.
parents ea7caae6 ae5624a7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -533,6 +533,9 @@ void btif_hh_remove_device(bt_bdaddr_t bd_addr)
        return;
    }

    /* need to notify up-layer device is disconnected to avoid state out of sync with up-layer */
    HAL_CBACK(bt_hh_callbacks, connection_state_cb, &(p_dev->bd_addr), BTHH_CONN_STATE_DISCONNECTED);

    p_dev->dev_status = BTHH_CONN_STATE_UNKNOWN;
    p_dev->dev_handle = BTA_HH_INVALID_HANDLE;
    if (btif_hh_cb.device_num > 0) {