Loading res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -42,4 +42,7 @@ <!-- Component name for the notification handler. The presence of this value will disable MissedCallNotifierImpl's presentation of missed call/voice notifications [DO NOT TRANSLATE] --> <string name="notification_component" translatable="false"></string> <!-- Flag indicating whether audio should be routed to speaker when docked --> <bool name="use_speaker_when_docked">true</bool> </resources> src/com/android/server/telecom/CallsManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -712,7 +712,12 @@ public class CallsManager extends Call.ListenerBase implements VideoProviderProx } else { Log.i(this, "%s Starting with speakerphone because car is docked.", call); } call.setStartWithSpeakerphoneOn(speakerphoneOn || mDockManager.isDocked()); final boolean useSpeakerWhenDocked = mContext.getResources().getBoolean( R.bool.use_speaker_when_docked); call.setStartWithSpeakerphoneOn(speakerphoneOn || (useSpeakerWhenDocked && mDockManager.isDocked())); if (call.isEmergencyCall()) { // Emergency -- CreateConnectionProcessor will choose accounts automatically Loading Loading
res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -42,4 +42,7 @@ <!-- Component name for the notification handler. The presence of this value will disable MissedCallNotifierImpl's presentation of missed call/voice notifications [DO NOT TRANSLATE] --> <string name="notification_component" translatable="false"></string> <!-- Flag indicating whether audio should be routed to speaker when docked --> <bool name="use_speaker_when_docked">true</bool> </resources>
src/com/android/server/telecom/CallsManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -712,7 +712,12 @@ public class CallsManager extends Call.ListenerBase implements VideoProviderProx } else { Log.i(this, "%s Starting with speakerphone because car is docked.", call); } call.setStartWithSpeakerphoneOn(speakerphoneOn || mDockManager.isDocked()); final boolean useSpeakerWhenDocked = mContext.getResources().getBoolean( R.bool.use_speaker_when_docked); call.setStartWithSpeakerphoneOn(speakerphoneOn || (useSpeakerWhenDocked && mDockManager.isDocked())); if (call.isEmergencyCall()) { // Emergency -- CreateConnectionProcessor will choose accounts automatically Loading