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

Commit a148159d authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Remove allow_switching_hid_and_hogp flag guard from btif_hh_disconnected()

Change-Id: I7f25a4c494e113b9f12c23c8089b5cf929c8fed4
Test: mmm packages/modules/Bluetooth
Flag: EXEMPT removing allow_switching_hid_and_hogp
Bug: 378011758
parent 8bf8784b
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -937,12 +937,11 @@ void btif_hh_disconnected(const RawAddress& addr, tBT_TRANSPORT transport) {
  if (p_dev == nullptr) {
    return;
  }
  if (com::android::bluetooth::flags::allow_switching_hid_and_hogp()) {

  btif_hh_added_device_t* added_dev = btif_hh_find_added_dev(link_spec);
  if (added_dev == nullptr || !added_dev->reconnect_allowed) {
    return;
  }
  }

  log::debug("Rearm HoGP reconnection for {}", addr);
  BTA_HhOpen(p_dev->link_spec, false);