Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b258295 authored by Yorke Lee's avatar Yorke Lee
Browse files

Always allow landscape mode if video call is the primary call

Bug: 19995709
Change-Id: Ie21b50bf8ed34b0c50463285104e59271c94b12e
parent 4b06b9c7
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -541,6 +541,11 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
        checkForVideoCallChange(call);
        checkForVideoStateChange(call);
        checkForCallStateChange(call);
        checkForOrientationAllowedChange(call);
    }

    private void checkForOrientationAllowedChange(Call call) {
        InCallPresenter.getInstance().setInCallAllowsOrientationChange(CallUtils.isVideoCall(call));
    }

    /**
@@ -609,7 +614,6 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
        }

        showVideoUi(newVideoState, call.getState());
        InCallPresenter.getInstance().setInCallAllowsOrientationChange(true);

        // Communicate the current camera to telephony and make a request for the camera
        // capabilities.
@@ -699,8 +703,6 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
    private void exitVideoMode() {
        Log.d(this, "exitVideoMode");

        InCallPresenter.getInstance().setInCallAllowsOrientationChange(false);

        showVideoUi(VideoProfile.VideoState.AUDIO_ONLY, Call.State.ACTIVE);
        enableCamera(mVideoCall, false);