Merge "Set audio route name when LE audio device is connected"
This commit is contained in:
@@ -1102,6 +1102,7 @@ public class AudioDeviceInventory {
|
|||||||
mConnectedDevices.put(DeviceInfo.makeDeviceListKey(device, address),
|
mConnectedDevices.put(DeviceInfo.makeDeviceListKey(device, address),
|
||||||
new DeviceInfo(device, name, address, AudioSystem.AUDIO_FORMAT_DEFAULT));
|
new DeviceInfo(device, name, address, AudioSystem.AUDIO_FORMAT_DEFAULT));
|
||||||
mDeviceBroker.postAccessoryPlugMediaUnmute(device);
|
mDeviceBroker.postAccessoryPlugMediaUnmute(device);
|
||||||
|
setCurrentAudioRouteNameIfPossible(name, /*fromA2dp=*/false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (streamType == AudioSystem.STREAM_DEFAULT) {
|
if (streamType == AudioSystem.STREAM_DEFAULT) {
|
||||||
|
|||||||
Reference in New Issue
Block a user