summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-04-13 23:12:13 +0000
committerAndroid Partner Code Review <android-gerrit-partner@google.com>2015-04-13 23:12:14 +0000
commitb41550c23c84adefd90ecb2c667dc5832739ef1c (patch)
tree86f89c3c25eca512bf6019acf9bdd977fdf138e8 /InCallUI/src/com/android/incallui
parent53485a55bfbccc8fe822739f553fc467dc0b1119 (diff)
parent0b258295fd224096f4746c4fc91badfde2eea364 (diff)
Merge "Always allow landscape mode if video call is the primary call" into m-wireless-dev
Diffstat (limited to 'InCallUI/src/com/android/incallui')
-rw-r--r--InCallUI/src/com/android/incallui/VideoCallPresenter.java8
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);