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

Commit 6078e769 authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Automerger Merge Worker
Browse files

Don't change state when rejecting incoming HID connection am: a44419da

parents 583b3638 a44419da
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -523,10 +523,14 @@ static void hh_open_handler(tBTA_HH_CONN& conn) {
        p_dev->dev_status = BTHH_CONN_STATE_DISCONNECTED;
      }

      if (!com::android::bluetooth::flags::suppress_hid_rejection_broadcast()) {
        hh_connect_complete(conn.handle, conn.link_spec,
                            BTIF_HH_DEV_DISCONNECTED);
        return;
      }
      BTA_HhClose(conn.handle);
      return;
    }
  }

  if (!com::android::bluetooth::flags::allow_switching_hid_and_hogp()) {