Skip to content

Rotation Lock Ignored #842

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

Closed
FluxIX opened this issue Jul 17, 2016 · 5 comments
Closed

Rotation Lock Ignored #842

FluxIX opened this issue Jul 17, 2016 · 5 comments

Comments

@FluxIX
Copy link

FluxIX commented Jul 17, 2016

I have a Kivy app with is ignoring the device's rotation lock. The app was built to be compatible with both portrait and landscape modes, but when the device has locked the orientation to either portrait or landscape, the application is able to display in either portrait or landscape orientation.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@inclement
Copy link
Member

How did you set the rotation lock? With pyjnius?

@FluxIX
Copy link
Author

FluxIX commented Jul 17, 2016

The rotation lock was set through the devices settings, external to the app.

@KeyWeeUsr
Copy link
Contributor

If the p4a doesn't check for orientation through spme java class(e.g. only by hardware changes - real rotation), it might ignore whole rotation lock mechanism that some of these apps use.

@ghost
Copy link

ghost commented Sep 17, 2016

I can confirm. Kivy apps are ignoring the global system setting which is annoying.

@inclement
Copy link
Member

It turns out this is just because the correct setting is --orientation=user rather than --orientation=sensor - the former is the same, except that it obeys the user's rotation settings. Other options are also available, listed in the Android documentation under android:screenOrientation. I've added this information to the documentation.

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

No branches or pull requests

3 participants