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

Commit 5e404642 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Adjust volume offset as VC profile connection only" into tm-d1-dev am: 34b19dfb

parents 1759d032 34b19dfb
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -1133,8 +1133,10 @@ public class BluetoothProxy {
    }
    }


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