Skip to content
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

fix: auto fullscreen stops working after first rotation #5174

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

simonesummo
Copy link
Contributor

Fix orientation bug where screen get stuck after first orientation change.

Bug was in an if that where removing SCREEN_ORIENTATION_SENSOR from mainActivity.requestedOrientation ignoring autoFullscreenEnabled prefs.

I'm not sure if I've done some regression on other things as I don't know yet all the app behaviours, every suggestion is welcome.

@simonesummo
Copy link
Contributor Author

simonesummo commented Nov 17, 2023

I'm having problems with ktlint and I can't run it locally to be sure it's ok, I suggest to use detekt with maybe git hooks to run it in pre-commit or pre-push

@Bnyro
Copy link
Member

Bnyro commented Nov 17, 2023

Please run ktlint --android -F next time locally before creating the PR

Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Bnyro Bnyro changed the title Auto fullscreen bug fix: auto fullscreen stops working after first rotation Nov 17, 2023
@Bnyro Bnyro merged commit c84f445 into libre-tube:master Nov 17, 2023
3 checks passed
@simonesummo simonesummo deleted the auto-fullscreen-bug branch November 17, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants