Implement layout changes to new call screen UX.

This commit is contained in:
Alex Hart
2020-05-21 16:57:21 -03:00
parent 5cb1201903
commit 124c3e25e9
37 changed files with 783 additions and 293 deletions

View File

@@ -482,13 +482,12 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
boolean isSpeaker = intent.getBooleanExtra(EXTRA_SPEAKER, false);
AudioManager audioManager = ServiceUtil.getAudioManager(this);
audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
audioManager.stopBluetoothSco();
audioManager.setBluetoothScoOn(false);
audioManager.setSpeakerphoneOn(true);
audioManager.setSpeakerphoneOn(isSpeaker);
if (isSpeaker && audioManager.isBluetoothScoOn()) {
audioManager.stopBluetoothSco();
audioManager.setBluetoothScoOn(false);
}
if (!localCameraState.isEnabled()) {
lockManager.updatePhoneState(getInCallPhoneState());
}