This approach works for orientations set from manifest.xml android:screenOrientation="portrait" and from code currentActivity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE
Please check if the PR fulfills these requirements
[ ] Self-review: I am confident this is the simplest and clearest way to achieve the expected behaviour
[ ] There are no dependencies on other PRs or I have linked dependencies through Zenhub
[ ] The commit messages are clean and understandable
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Code runs on all relevant platforms (if major change: screenshots attached)
Type of change:
Motivation
It should be possible to render in portrait.
This approach works for orientations set from manifest.xml
android:screenOrientation="portrait"
and from codecurrentActivity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE
Please check if the PR fulfills these requirements