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

"--orientation fullUser" is not working #1763

Closed
goffi-contrib opened this issue Mar 16, 2019 · 2 comments
Closed

"--orientation fullUser" is not working #1763

goffi-contrib opened this issue Mar 16, 2019 · 2 comments

Comments

@goffi-contrib
Copy link
Contributor

Versions

  • Python: 2.7.15
  • OS: Android 6.0
  • Kivy: a95d67f
  • Cython: 0.29.6

Description

With P4A master (rev 84142eb) the --orientation fullUser argument is not working at all, the screen stay in portrait mode whatever the user-set orientation locking status is. The same result happens with --orientation user.

With sensor the orientation is working and moving according to sensor, but without obeying the user settings (which is the normal behaviour according to Android documentation), so it can't be used as a replacement of user and fullUser.

This has been tested with the sdl2 bootstrap.

buildozer.spec

I've used P4A directly without buildozer.

Logs

No logs, the app is not reacting at all to orientation change, with or without user locking.

@goffi-contrib goffi-contrib changed the title "--orientation fullUser" is not working --orientation fullUser is not working Mar 16, 2019
@goffi-contrib goffi-contrib changed the title --orientation fullUser is not working "--orientation fullUser" is not working Mar 16, 2019
@inclement
Copy link
Member

Are you using Kivy master? If not, try that.

@goffi-contrib
Copy link
Contributor Author

@inclement I was using the version of the recipe a95d67f.
I'm trying now with the latest commit of master (c4d6894), it's now working, but if I move to landscape mode and then lock the orientation, the app go back to portrait and crash a few seconds after. I don't think it's linked on the app itself. Anyway it's something for an other ticket, I'll test more and report this other issue later.

About the orientation, Kivy recipe should be updated.

Thanks for your feedback!

goffi-contrib added a commit to goffi-contrib/python-for-android that referenced this issue Mar 17, 2019
a95d67f revision of Kivy doesn't handle properly the orientation on
Android (see kivy#1763).

Revision c4d6894 works with `--orientation user`
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

2 participants