Merge "Set audio route name when LE audio device is connected" am: dd1a3bae15 am: 0ef7fe46ad
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2038603 Change-Id: I219e7d25f32e8d469deaa0c68dad16dc89616a14 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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