From ac3e2ac29806c9dfb8480142f30350c9f633e10d Mon Sep 17 00:00:00 2001 From: Himanshu Rawat Date: Tue, 4 Mar 2025 14:57:12 -0800 Subject: Remove flag close_hid_only_if_connected Test: mmm packages/modules/Bluetooth Flag: com.android.bluetooth.flags.close_hid_only_if_connected Bug: 358241286 Change-Id: Id2f3d731f2440e36f1c325e7d093c3875c01a3ee --- system/btif/src/btif_hh.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system') diff --git a/system/btif/src/btif_hh.cc b/system/btif/src/btif_hh.cc index 9bb670a2b2..edc320af85 100644 --- a/system/btif/src/btif_hh.cc +++ b/system/btif/src/btif_hh.cc @@ -492,8 +492,7 @@ static bthh_connection_state_t hh_get_state_on_disconnect(tAclLinkSpec& link_spe static void hh_connect_complete(tBTA_HH_CONN& conn, bthh_connection_state_t state) { if (state != BTHH_CONN_STATE_CONNECTED) { - if (!com::android::bluetooth::flags::close_hid_only_if_connected() || - conn.status == BTA_HH_OK) { + if (conn.status == BTA_HH_OK) { BTA_HhClose(conn.handle); } } -- cgit v1.2.3-59-g8ed1b