From 24ac61bacdfeb1a2cd1581d9915e40cc0e506565 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 26 Sep 2012 14:37:10 +0200 Subject: [PATCH] Fix call update if video isn't enabled --- src/org/linphone/InCallActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/org/linphone/InCallActivity.java b/src/org/linphone/InCallActivity.java index 5211d34fa..bf1802ed6 100644 --- a/src/org/linphone/InCallActivity.java +++ b/src/org/linphone/InCallActivity.java @@ -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();