mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Implement layout changes to new call screen UX.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user