Update Telecom APIs to include multi-hfp
* Add bluetooth devices to CallAudioState * Add methods for specifying a bluetooth device to InCallService * Add methods for specifying a bluetooth device to Connection (for self-managed connections) Bug: 64767509 Test: unit tests Change-Id: I286b19b423dc2ee417dbc90eda7e8055b2da2444
This commit is contained in:
@@ -1294,10 +1294,10 @@ public abstract class ConnectionService extends Service {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAudioRouteChanged(Connection c, int audioRoute) {
|
||||
public void onAudioRouteChanged(Connection c, int audioRoute, String bluetoothAddress) {
|
||||
String id = mIdByConnection.get(c);
|
||||
if (id != null) {
|
||||
mAdapter.setAudioRoute(id, audioRoute);
|
||||
mAdapter.setAudioRoute(id, audioRoute, bluetoothAddress);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user