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

Commit 3b85bc24 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "AudioDeviceBroker: fix createBtDeviceInfo for HEADSET profile" into main

parents 041d7a4b 840c738f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -966,6 +966,11 @@ public class AudioDeviceBroker {
            case BluetoothProfile.LE_AUDIO_BROADCAST:
                audioDevice = AudioSystem.DEVICE_OUT_BLE_BROADCAST;
                break;
            case BluetoothProfile.HEADSET:
                // the actual device type is not important at this point and
                // will be set by BtHelper.handleBtScoActiveDeviceChange()
                audioDevice = AudioSystem.DEVICE_OUT_BLUETOOTH_SCO;
                break;
            default: throw new IllegalArgumentException("Invalid profile " + d.mInfo.getProfile());
        }
        return new BtDeviceInfo(d, device, state, audioDevice, codec);