Merge "Replacing BluetoothCodecStatus creator by Builder" am: 471a91657a am: bfbeff0524
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2013036 Change-Id: Iae4335f104daad98a5a91e29e27f99d5fbc254f9
This commit is contained in:
@@ -6831,7 +6831,8 @@ public class AudioManager {
|
|||||||
for (Integer format : formatsList) {
|
for (Integer format : formatsList) {
|
||||||
int btSourceCodec = AudioSystem.audioFormatToBluetoothSourceCodec(format);
|
int btSourceCodec = AudioSystem.audioFormatToBluetoothSourceCodec(format);
|
||||||
if (btSourceCodec != BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID) {
|
if (btSourceCodec != BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID) {
|
||||||
codecConfigList.add(new BluetoothCodecConfig(btSourceCodec));
|
codecConfigList.add(
|
||||||
|
new BluetoothCodecConfig.Builder().setCodecType(btSourceCodec).build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return codecConfigList;
|
return codecConfigList;
|
||||||
|
|||||||
Reference in New Issue
Block a user