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

Commit 8d9c8437 authored by Alice Kuo's avatar Alice Kuo
Browse files

Adjust volume offset as VC profile connection only

The previous volume bar is supported as LE audio profile connected. When
VCP standalone connection, we could use the volume seek bar to send the
volume offset command to the remote device for test

Bug: 234429084
Test: Connect PTS, and send the volume offset command
Change-Id: I4b4ba846e9d422c8ea737b7cd5215e5de684898c
Merged-In: I4b4ba846e9d422c8ea737b7cd5215e5de684898c
(cherry picked from commit aa16de85)
parent 935446da
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);
        }
    }