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

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

Merge "Into the BG connection when the HA disconnects from remote side"

parents 392a4936 2255f195
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -921,9 +921,6 @@ class HearingAidImpl : public HearingAid {
    }

    if (hearingDevice->first_connection) {
      /* add device into BG connection to accept remote initiated connection */
      BTA_GATTC_Open(gatt_if, address, false, GATT_TRANSPORT_LE, false);

      btif_storage_add_hearing_aid(*hearingDevice);

      hearingDevice->first_connection = false;
@@ -1507,7 +1504,10 @@ class HearingAidImpl : public HearingAid {

    DoDisconnectCleanUp(hearingDevice);

    // Keep this hearing aid in the list, and allow to reconnect back.
    // This is needed just for the first connection. After stack is restarted,
    // code that loads device will add them to whitelist.
    BTA_GATTC_Open(gatt_if, hearingDevice->address, false, GATT_TRANSPORT_LE,
                   false);

    callbacks->OnConnectionState(ConnectionState::DISCONNECTED, remote_bda);