-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Remember and restore orientation on fullscreen exit #12781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remember and restore orientation on fullscreen exit #12781
Conversation
- Store the original screen orientation when entering fullscreen. - Restore the saved orientation when exiting fullscreen. - On tablets, continue to just toggle the fullscreen UI without changing the device orientation.
TobiGr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR. The code LGTM.
I am pretty certain that this code was that simple years ago but was changed to achieve certain behaviour for some edge cases.
We need to test this with landscape and portrait videos (and switching between them) as well as locking the orientation while playing videos on phone, tablet and tv to check for unwanted behaviours.
What is it?
Description of the changes in your PR
Before/After Screenshots/Screen Record
Fixes the following issue(s)
Relies on the following changes
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.
Due diligence