summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-10-29 12:31:09 -0700
committerEric Laurent <elaurent@google.com>2012-10-29 12:31:09 -0700
commit5ba0ffa0237a5c300545e4c72591613c6e5b2ed9 (patch)
treeb5a3962e2b0cfd09e6cf3e14f61130c745b28cff
parentdbcec903c858b65c78620e2b06238e42ff4d12da (diff)
downloadframeworks_base-5ba0ffa0237a5c300545e4c72591613c6e5b2ed9.zip
frameworks_base-5ba0ffa0237a5c300545e4c72591613c6e5b2ed9.tar.gz
frameworks_base-5ba0ffa0237a5c300545e4c72591613c6e5b2ed9.tar.bz2
audio service: make dock audio is off by default
It is better to turn dock audio off by default if the user has not yet explicitly turned it on from the settings menu. There is a discoverability issue with current implementation as we do not launch the settings menu at first dock insertion. Having audio routed to the dock by default would make the tablet silent for media content when docked and users will not be directed to the settings menu. As the dock audio enable setting is for low end docks only (analog connection and no jack detection) disabling audio for low end docks by default does not impact manta and prime docks. Bug 7302106. Change-Id: I571f361d41940cfb811f038442ae9ba9c6361d1d
-rw-r--r--media/java/android/media/AudioService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java
index a5c60d4..2bd1424 100644
--- a/media/java/android/media/AudioService.java
+++ b/media/java/android/media/AudioService.java
@@ -636,7 +636,7 @@ public class AudioService extends IAudioService.Stub implements OnFinished {
private void readDockAudioSettings(ContentResolver cr)
{
mDockAudioMediaEnabled = Settings.Global.getInt(
- cr, Settings.Global.DOCK_AUDIO_MEDIA_ENABLED, 1) == 1;
+ cr, Settings.Global.DOCK_AUDIO_MEDIA_ENABLED, 0) == 1;
if (mDockAudioMediaEnabled) {
mBecomingNoisyIntentDevices |= AudioSystem.DEVICE_OUT_ANLG_DOCK_HEADSET;