diff options
author | 2025-03-04 14:57:12 -0800 | |
---|---|---|
committer | 2025-03-04 14:57:12 -0800 | |
commit | ac3e2ac29806c9dfb8480142f30350c9f633e10d (patch) | |
tree | 872617b081a5195305a346b690fc664896028a92 /system/btif | |
parent | c432d1a9e64d616bd2436fe3e2503bd53ca7a267 (diff) |
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
Diffstat (limited to 'system/btif')
-rw-r--r-- | system/btif/src/btif_hh.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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); } } |