mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Fix enabling video while ringing for an audio-only call.
* Update to RingRTC v2.20.4 Co-authored-by: Jim Gustafson <jim@signal.org>
This commit is contained in:
committed by
Greyson Parrelli
parent
ef0c6c79cb
commit
38b6362b25
@@ -98,6 +98,16 @@ public class CallSetupActionProcessorDelegate extends WebRtcActionProcessor {
|
||||
.cameraState(camera.getCameraState())
|
||||
.build();
|
||||
|
||||
//noinspection SimplifiableBooleanExpression
|
||||
if ((enable && camera.isInitialized()) || !enable) {
|
||||
try {
|
||||
CallManager callManager = webRtcInteractor.getCallManager();
|
||||
callManager.setVideoEnable(enable);
|
||||
} catch (CallException e) {
|
||||
Log.w(tag, "Unable change video enabled state to " + enable, e);
|
||||
}
|
||||
}
|
||||
|
||||
WebRtcUtil.enableSpeakerPhoneIfNeeded(webRtcInteractor, currentState);
|
||||
|
||||
return currentState;
|
||||
|
||||
Reference in New Issue
Block a user