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

Commit 7649dfa9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Apply volumes when changing volume ranges" into main

parents b3def971 d882faf9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -8503,7 +8503,9 @@ public class AudioService extends IAudioService.Stub
    private void onUpdateBtCommDeviceActive(@BtCommDeviceActiveType int btCommDeviceActive) {
        if (mBtCommDeviceActive.getAndSet(btCommDeviceActive) != btCommDeviceActive) {
            getVssForStreamOrDefault(AudioSystem.STREAM_VOICE_CALL).updateIndexFactors();
            final VolumeStreamState vss = getVssForStreamOrDefault(AudioSystem.STREAM_VOICE_CALL);
            vss.updateIndexFactors();
            vss.applyAllVolumes();
        }
    }