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

Commit e506c85e authored by John Spurlock's avatar John Spurlock
Browse files

Volume: Avoid making bad forceVolumeControlStream call.

Ensure we don't call audio manager with STREAM_MASTER, which is
a pseudo-stream value internal to volume panel.

Bug: 18250921
Change-Id: I4b6af9fc60d7683e9103be52cc937c33c1c15e31
parent c1de25d8
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);