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

Commit d92f2f7c authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioDeviceBroker: fix communication client death

Make sure that SCO audio is deactivated when a communication
route client dies. Previous implementation was just removing the client
from the list and updating the current route but wihout requesting the
BT Helper to stop SCO.

Bug: 243096994
Test: repro steps i nthe bug
Change-Id: I09d0e4965933d70e815abe4a24fd3060f0a11564
parent d8ebffe4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1770,8 +1770,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
            return;
        }
        Log.w(TAG, "Communication client died");
        removeCommunicationRouteClient(client.getBinder(), true);
        onUpdateCommunicationRouteClient("onCommunicationRouteClientDied");
        setCommunicationRouteForClient(client.getBinder(), client.getPid(), null,
                BtHelper.SCO_MODE_UNDEFINED, "onCommunicationRouteClientDied");
    }

    /**