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

Commit cc2cba6a authored by Ted Wang's avatar Ted Wang Committed by Automerger Merge Worker
Browse files

Don't update volume if volume level is same as current device volume. am: 4a29cc9f

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/12129585

Change-Id: Ica994a5a1e790b09f79d91fc8cf0bdae38f8a18c
parents f6ca211d 4a29cc9f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -176,7 +176,8 @@ class AvrcpVolumeManager extends AudioDeviceCallback {
                        + " deviceVolume=" + deviceVolume
                        + " sDeviceMaxVolume=" + sDeviceMaxVolume);
        mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, deviceVolume,
                AudioManager.FLAG_SHOW_UI | AudioManager.FLAG_BLUETOOTH_ABS_VOLUME);
                (deviceVolume != getVolume(device, -1) ? AudioManager.FLAG_SHOW_UI : 0)
                    | AudioManager.FLAG_BLUETOOTH_ABS_VOLUME);
        storeVolumeForDevice(device);
    }