Loading InCallUI/src/com/android/incallui/InCallPresenter.java +4 −2 Original line number Diff line number Diff line Loading @@ -1811,16 +1811,18 @@ public class InCallPresenter implements CallList.Listener, * orientation event listener if allowOrientationChange is true, disables it if false. * * @param orientation {@link ActivityInfo#screenOrientation} Actual orientation value to set * @return returns whether the new orientation mode was set successfully or not. */ public void setInCallAllowsOrientationChange(int orientation) { public boolean setInCallAllowsOrientationChange(int orientation) { if (mInCallActivity == null) { Log.e(this, "InCallActivity is null. Can't set requested orientation."); return; return false; } mInCallActivity.setRequestedOrientation(orientation); mInCallActivity.enableInCallOrientationEventListener( orientation == InCallOrientationEventListener.FULL_SENSOR_SCREEN_ORIENTATION); return true; } /* returns TRUE if screen is turned ON else false */ Loading InCallUI/src/com/android/incallui/VideoCallPresenter.java +2 −2 Original line number Diff line number Diff line Loading @@ -670,11 +670,11 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi private void checkForOrientationAllowedChange(Call call) { final int newMode = OrientationModeHandler.getInstance().getOrientation(call); if (newMode != mActivityOrientationMode) { if (newMode != mActivityOrientationMode && InCallPresenter. getInstance().setInCallAllowsOrientationChange(newMode)) { Log.d(this, "checkForOrientationAllowedChange: currMode = " + mActivityOrientationMode + " newMode = " + newMode); mActivityOrientationMode = newMode; InCallPresenter.getInstance().setInCallAllowsOrientationChange(newMode); } } Loading Loading
InCallUI/src/com/android/incallui/InCallPresenter.java +4 −2 Original line number Diff line number Diff line Loading @@ -1811,16 +1811,18 @@ public class InCallPresenter implements CallList.Listener, * orientation event listener if allowOrientationChange is true, disables it if false. * * @param orientation {@link ActivityInfo#screenOrientation} Actual orientation value to set * @return returns whether the new orientation mode was set successfully or not. */ public void setInCallAllowsOrientationChange(int orientation) { public boolean setInCallAllowsOrientationChange(int orientation) { if (mInCallActivity == null) { Log.e(this, "InCallActivity is null. Can't set requested orientation."); return; return false; } mInCallActivity.setRequestedOrientation(orientation); mInCallActivity.enableInCallOrientationEventListener( orientation == InCallOrientationEventListener.FULL_SENSOR_SCREEN_ORIENTATION); return true; } /* returns TRUE if screen is turned ON else false */ Loading
InCallUI/src/com/android/incallui/VideoCallPresenter.java +2 −2 Original line number Diff line number Diff line Loading @@ -670,11 +670,11 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi private void checkForOrientationAllowedChange(Call call) { final int newMode = OrientationModeHandler.getInstance().getOrientation(call); if (newMode != mActivityOrientationMode) { if (newMode != mActivityOrientationMode && InCallPresenter. getInstance().setInCallAllowsOrientationChange(newMode)) { Log.d(this, "checkForOrientationAllowedChange: currMode = " + mActivityOrientationMode + " newMode = " + newMode); mActivityOrientationMode = newMode; InCallPresenter.getInstance().setInCallAllowsOrientationChange(newMode); } } Loading