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

Commit f17f04a5 authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "Volume: Avoid making bad forceVolumeControlStream call." into lmp-mr1-dev

parents 038c1444 e506c85e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1178,7 +1178,9 @@ public class VolumePanel extends Handler implements DemoMode {
        if (!isShowing()) {
            int stream = (streamType == STREAM_REMOTE_MUSIC) ? -1 : streamType;
            // when the stream is for remote playback, use -1 to reset the stream type evaluation
            if (stream != STREAM_MASTER) {
                mAudioManager.forceVolumeControlStream(stream);
            }
            mDialog.show();
            if (mCallback != null) {
                mCallback.onVisible(true);