Merge "Replacing BluetoothCodecStatus creator by Builder"

This commit is contained in:
Etienne Ruffieux
2022-03-09 10:24:16 +00:00
committed by Gerrit Code Review

View File

@@ -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;