am 4a0e40a7: am f17f04a5: Merge "Volume: Avoid making bad forceVolumeControlStream call." into lmp-mr1-dev
* commit '4a0e40a76431cc4ea0c052ea9106616593c1a3de': Volume: Avoid making bad forceVolumeControlStream call.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user