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:
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user