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
This commit is contained in:
Eric Laurent
2022-08-23 18:29:26 +02:00
parent d8ebffe476
commit d92f2f7c46

View File

@@ -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");
}
/**