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

Commit d5d9ec58 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove allow_switching_hid_and_hogp flag guard from btif_hh_disconnected()" into main

parents 54fcd78e a148159d
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);