Skip to content

Commit 5ba0ffa

Browse files
author
Eric Laurent
committed
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
1 parent dbcec90 commit 5ba0ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media/java/android/media/AudioService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ private void updateStreamVolumeAlias(boolean updateVolumes) {
636636
private void readDockAudioSettings(ContentResolver cr)
637637
{
638638
mDockAudioMediaEnabled = Settings.Global.getInt(
639-
cr, Settings.Global.DOCK_AUDIO_MEDIA_ENABLED, 1) == 1;
639+
cr, Settings.Global.DOCK_AUDIO_MEDIA_ENABLED, 0) == 1;
640640

641641
if (mDockAudioMediaEnabled) {
642642
mBecomingNoisyIntentDevices |= AudioSystem.DEVICE_OUT_ANLG_DOCK_HEADSET;

0 commit comments

Comments
 (0)