clean up sdk deps
This commit is contained in:
parent
47a060da19
commit
bc755f8810
2 changed files with 5 additions and 4 deletions
|
@ -92,7 +92,7 @@ public class VideoCallActivity extends SoftVolumeActivity implements OnCapturing
|
|||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
if (Version.sdkAboveOrEqual(8) && recordManager.isOutputOrientationMismatch()) {
|
||||
if (Version.sdkAboveOrEqual(8) && recordManager.isOutputOrientationMismatch(LinphoneManager.getLc())) {
|
||||
Log.i("Phone orientation has changed: updating call.");
|
||||
CallManager.getInstance().updateCall();
|
||||
// resizeCapturePreview by callback when recording started
|
||||
|
|
|
@ -20,7 +20,8 @@ package org.linphone.core.video;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.linphone.LinphoneManager;
|
||||
|
||||
import org.linphone.core.LinphoneCore;
|
||||
import org.linphone.core.Log;
|
||||
import org.linphone.core.Version;
|
||||
import org.linphone.core.video.AndroidCameraRecord.RecorderParams;
|
||||
|
@ -339,8 +340,8 @@ public class AndroidCameraRecordManager {
|
|||
/**
|
||||
* @return true if linphone core configured to send a A buffer while phone orientation induces !A buffer (A=landscape or portrait)
|
||||
*/
|
||||
public boolean isOutputOrientationMismatch() {
|
||||
final boolean currentlyPortrait = LinphoneManager.getLc().getPreferredVideoSize().isPortrait();
|
||||
public boolean isOutputOrientationMismatch(LinphoneCore lc) {
|
||||
final boolean currentlyPortrait = lc.getPreferredVideoSize().isPortrait();
|
||||
final boolean shouldBePortrait = isOutputPortraitDependingOnCameraAndPhoneOrientations();
|
||||
return currentlyPortrait ^ shouldBePortrait;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue