From 5ba0ffa0237a5c300545e4c72591613c6e5b2ed9 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Mon, 29 Oct 2012 12:31:09 -0700 Subject: 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 --- media/java/android/media/AudioService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/java') 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; -- cgit v1.1