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