Merge "Volume: Avoid making bad forceVolumeControlStream call." into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f17f04a51e
@@ -1178,7 +1178,9 @@ public class VolumePanel extends Handler implements DemoMode {
|
|||||||
if (!isShowing()) {
|
if (!isShowing()) {
|
||||||
int stream = (streamType == STREAM_REMOTE_MUSIC) ? -1 : streamType;
|
int stream = (streamType == STREAM_REMOTE_MUSIC) ? -1 : streamType;
|
||||||
// when the stream is for remote playback, use -1 to reset the stream type evaluation
|
// when the stream is for remote playback, use -1 to reset the stream type evaluation
|
||||||
|
if (stream != STREAM_MASTER) {
|
||||||
mAudioManager.forceVolumeControlStream(stream);
|
mAudioManager.forceVolumeControlStream(stream);
|
||||||
|
}
|
||||||
mDialog.show();
|
mDialog.show();
|
||||||
if (mCallback != null) {
|
if (mCallback != null) {
|
||||||
mCallback.onVisible(true);
|
mCallback.onVisible(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user