Replacing BluetoothCodecStatus creator by Builder
Bug: 222540543 Tag: #feature Test: atest BluetoothCodecsTest Change-Id: I7483b96079b6e2b1708a7999df91850b2ed9f068
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user