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

Commit b41550c2 authored by Yorke Lee's avatar Yorke Lee Committed by Android Partner Code Review
Browse files

Merge "Always allow landscape mode if video call is the primary call" into m-wireless-dev

parents 53485a55 0b258295
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);