Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfbeff05 authored by Etienne Ruffieux's avatar Etienne Ruffieux Committed by Automerger Merge Worker
Browse files

Merge "Replacing BluetoothCodecStatus creator by Builder" am: 471a9165

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2013036

Change-Id: If79981a31cfa411fb462dd44e0e40de69c47c235
parents a3da8b29 471a9165
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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;