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

Commit d13f71c0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Adjust volume offset as VC profile connection only"

parents 38c161db aa16de85
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1121,8 +1121,10 @@ public class BluetoothProxy {
    }

    public void setVolume(BluetoothDevice device, int volume) {
        if (bluetoothLeAudio != null) {
        if (bluetoothLeAudio != null && !bluetoothLeAudio.getConnectedDevices().isEmpty()) {
            bluetoothLeAudio.setVolume(volume);
        } else if (bluetoothVolumeControl != null) {
            bluetoothVolumeControl.setVolumeOffset(device, volume);
        }
    }