don't use getCurrentParamsCopy() to update a call or accept an update of call.

This commit is contained in:
Simon Morlat 2016-05-05 16:50:44 +02:00
parent b6edbee3cc
commit 46a5128e28

View file

@ -724,7 +724,7 @@ public class CallActivity extends Activity implements OnClickListener, SensorEve
}
if (isVideoEnabled) {
LinphoneCallParams params = call.getCurrentParamsCopy();
LinphoneCallParams params = LinphoneManager.getLc().createCallParams(call);
params.setVideoEnabled(false);
LinphoneManager.getLc().updateCall(call, params);
} else {
@ -1317,7 +1317,7 @@ public class CallActivity extends Activity implements OnClickListener, SensorEve
return;
}
LinphoneCallParams params = call.getCurrentParamsCopy();
LinphoneCallParams params = LinphoneManager.getLc().createCallParams(call);
if (accept) {
params.setVideoEnabled(true);
LinphoneManager.getLc().enableVideo(true, true);