mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-19 04:28:08 +00:00
Fix call update if video isn't enabled
This commit is contained in:
parent
84e6543e57
commit
19fa28254a
1 changed files with 6 additions and 0 deletions
|
|
@ -895,6 +895,12 @@ public class InCallActivity extends FragmentActivity implements
|
|||
|
||||
if (state == State.CallUpdatedByRemote) {
|
||||
// If the correspondent proposes video while audio call
|
||||
boolean isVideoEnabled = LinphoneManager.getInstance().isVideoEnabled();
|
||||
if (!isVideoEnabled) {
|
||||
acceptCallUpdate(false);
|
||||
return;
|
||||
}
|
||||
|
||||
boolean remoteVideo = call.getRemoteParams().getVideoEnabled();
|
||||
boolean localVideo = call.getCurrentParamsCopy().getVideoEnabled();
|
||||
boolean autoAcceptCameraPolicy = LinphoneManager.getInstance().isAutoAcceptCamera();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue