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

Commit 70dba688 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6864616 from 04aa6526 to rvc-qpr1-release

Change-Id: I60203c6672de8c6a8a421ad0acb811f4761af904
parents d1d71cf0 04aa6526
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -182,6 +182,10 @@ class AvrcpVolumeManager extends AudioDeviceCallback {
    }

    void sendVolumeChanged(@NonNull BluetoothDevice device, int deviceVolume) {
        if (deviceVolume == getVolume(device, -1)) {
            d("sendVolumeChanged: Skipping update volume to same as current.");
            return;
        }
        int avrcpVolume =
                (int) Math.floor((double) deviceVolume * AVRCP_MAX_VOL / sDeviceMaxVolume);
        if (avrcpVolume > 127) avrcpVolume = 127;