don't use getCurrentParamsCopy() to update a call or accept an update of call.
This commit is contained in:
parent
b6edbee3cc
commit
46a5128e28
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue