summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-11-26 10:11:19 -0500
committerJohn Spurlock <jspurlock@google.com>2014-11-26 10:11:19 -0500
commite506c85eaa0b81359b6472825bec038750fae6d7 (patch)
tree17b84eade6fcfed882124963848c4a3090e979cc /packages/SystemUI/src/com
parentc1de25d8ebaecff697c1d5dfaa445e18ee07fa2d (diff)
downloadframeworks_base-e506c85eaa0b81359b6472825bec038750fae6d7.zip
frameworks_base-e506c85eaa0b81359b6472825bec038750fae6d7.tar.gz
frameworks_base-e506c85eaa0b81359b6472825bec038750fae6d7.tar.bz2
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
Diffstat (limited to 'packages/SystemUI/src/com')
-rw-r--r--packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java b/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java
index 1fe4698..aaf5d5f 100644
--- a/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java
+++ b/packages/SystemUI/src/com/android/systemui/volume/VolumePanel.java
@@ -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);