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

* commit 'f17f04a51e1e0b7f16d7c53015d0a66059b80cd3':
  Volume: Avoid making bad forceVolumeControlStream call.
This commit is contained in:
John Spurlock
2014-11-26 16:35:53 +00:00
committed by Android Git Automerger

View File

@@ -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
mAudioManager.forceVolumeControlStream(stream);
if (stream != STREAM_MASTER) {
mAudioManager.forceVolumeControlStream(stream);
}
mDialog.show();
if (mCallback != null) {
mCallback.onVisible(true);