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

Commit b7ae7c61 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

Merge "Into the BG connection when the HA disconnects from remote side" am: f359e5b0 am: ab4d619c

Change-Id: I608fd3348831f841079513a8c5e253c23baf64b5
parents ea0d010c ab4d619c
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);