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

Commit 10e0e1e6 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6420265 from 3b91d5ce to rvc-release

Change-Id: Ia11595d14415c5847b4f60668da2fce15dbf18a1
parents d4214fa3 3b91d5ce
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);