Don't call update_call after the device rotation as it will already take care of doing so

This commit is contained in:
Mickaël Turnel 2019-03-28 15:09:35 +01:00
parent d8cc5b62f8
commit df41e6743d

View file

@ -1873,12 +1873,6 @@ public class LinphoneActivity extends LinphoneGenericActivity
Core lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull(); Core lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
if (lc != null) { if (lc != null) {
lc.setDeviceRotation(rotation); lc.setDeviceRotation(rotation);
Call currentCall = lc.getCurrentCall();
if (currentCall != null
&& currentCall.cameraEnabled()
&& currentCall.getCurrentParams().videoEnabled()) {
lc.updateCall(currentCall, null);
}
} }
} }
} }