summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-02-04 12:30:32 -0800
committerEric Laurent <elaurent@google.com>2011-02-04 12:39:14 -0800
commit402f7f29634a9f68e7929be828a927a3e2f5efe9 (patch)
tree8beb58a557fba5f6950aa5c6787a640ad9220d1b /core
parentb85787411085bbea0ac725135cae02a4167b7aa7 (diff)
downloadframeworks_base-402f7f29634a9f68e7929be828a927a3e2f5efe9.zip
frameworks_base-402f7f29634a9f68e7929be828a927a3e2f5efe9.tar.gz
frameworks_base-402f7f29634a9f68e7929be828a927a3e2f5efe9.tar.bz2
Fix issues 3425035 and 3423785.
- Make sure that STREAM_MUSIC is affected by ringer mode on non voice capable devices whatever the saved settings say. - Added a hidden method to AudioManager for VolumePanel to override the stream selection logic while the panel is showing. Change-Id: Ib2ff2a7af63decb4e29c45700c41e5058f79d877
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/VolumePanel.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/view/VolumePanel.java b/core/java/android/view/VolumePanel.java
index 2aa94dc..3bab29f 100644
--- a/core/java/android/view/VolumePanel.java
+++ b/core/java/android/view/VolumePanel.java
@@ -190,6 +190,7 @@ public class VolumePanel extends Handler implements OnSeekBarChangeListener, Vie
mDialog.setOnDismissListener(new OnDismissListener() {
public void onDismiss(DialogInterface dialog) {
mActiveStreamType = -1;
+ mAudioManager.forceVolumeControlStream(mActiveStreamType);
}
});
// Change some window properties
@@ -483,6 +484,7 @@ public class VolumePanel extends Handler implements OnSeekBarChangeListener, Vie
}
if (!mDialog.isShowing()) {
+ mAudioManager.forceVolumeControlStream(streamType);
mDialog.setContentView(mView);
// Showing dialog - use collapsed state
collapse();