Ensure speaker off at start of any call

This commit is contained in:
Jim Gustafson 2020-06-16 08:51:40 -07:00 committed by Greyson Parrelli
parent 3d7cffef2b
commit d467c04749

View file

@ -1668,6 +1668,9 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
Intent intent = new Intent(this, WebRtcCallService.class); Intent intent = new Intent(this, WebRtcCallService.class);
AudioManager audioManager = ServiceUtil.getAudioManager(this);
audioManager.setSpeakerphoneOn(false);
if (isOutgoing) { if (isOutgoing) {
intent.setAction(ACTION_START_OUTGOING_CALL); intent.setAction(ACTION_START_OUTGOING_CALL);
activePeer.dialing(callId); activePeer.dialing(callId);