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

Commit 9927a55f authored by Zhihai Xu's avatar Zhihai Xu Committed by Android (Google) Code Review
Browse files

Merge "Crash after unpairing BT keyboard" into klp-dev

parents 0abdf53e d2ece4b2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -452,7 +452,8 @@ BOOLEAN bta_hh_hdl_event(BT_HDR *p_msg)
                      * So if REMOVE_DEVICE is called and in_use is FALSE then we should treat this as a NULL p_cb. Hence we
                      * force the index to be IDX_INVALID
                      */
                    if (bta_hh_cb.kdev[index].in_use == FALSE) {
                    if ((index != BTA_HH_IDX_INVALID) &&
                        (bta_hh_cb.kdev[index].in_use == FALSE)) {
                        index = BTA_HH_IDX_INVALID;
                    }
// btla-specific --