diff options
author | Yorke Lee <yorkelee@google.com> | 2015-04-13 15:58:41 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-04-13 16:02:43 -0700 |
commit | 0b258295fd224096f4746c4fc91badfde2eea364 (patch) | |
tree | bb15f16db79c02ac14a4b03ff483d61b3990f671 | |
parent | 4b06b9c7e532c48a47e53c98014376a0897f09c1 (diff) |
Always allow landscape mode if video call is the primary call
Bug: 19995709
Change-Id: Ie21b50bf8ed34b0c50463285104e59271c94b12e
-rw-r--r-- | InCallUI/src/com/android/incallui/VideoCallPresenter.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/VideoCallPresenter.java b/InCallUI/src/com/android/incallui/VideoCallPresenter.java index 1d8945f31..d49e2cdd9 100644 --- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java +++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java @@ -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); |