Fix call update if video isn't enabled
This commit is contained in:
parent
c787cbecfc
commit
24ac61bacd
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…
Reference in a new issue