Replacing BluetoothCodecStatus creator by Builder

Bug: 222540543
Tag: #feature
Test: atest BluetoothCodecsTest
Change-Id: I7483b96079b6e2b1708a7999df91850b2ed9f068
This commit is contained in:
Etienne Ruffieux
2022-03-08 13:31:41 +00:00
parent 7db2d81ae0
commit 2c5180a627

View File

@@ -6818,7 +6818,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;