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

Commit 64e6f251 authored by Ravi Paluri's avatar Ravi Paluri Committed by Linux Build Service Account
Browse files

IMS-VT: Handle orientation mode changes

Handle orientation mode changes to enable/disable
InCallOrientationEventListener in addition to
setting requested orientation for InCallActivity

Change-Id: I93f925ae20997de9325ab71390a731e21e46e2d0
CRs-Fixed: 846599
parent d8c460bd
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -152,11 +152,9 @@ public class OrientationModeHandler implements InCallDetailsListener, InCallUiLi
            Log.e(this, "Can't set requested orientation on a non-primary call");
            return;
        }
        final InCallActivity inCallActivity = InCallPresenter.getInstance().getActivity();
        if (inCallActivity != null) {
            inCallActivity.setRequestedOrientation(QtiCallUtils.toUiOrientationMode(
                    orientationMode));
        }

        InCallPresenter.getInstance().setInCallAllowsOrientationChange(
                QtiCallUtils.toUiOrientationMode(orientationMode));
    }

    /**