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 lock on phones #1834

Closed
dimipaun opened this issue Sep 14, 2020 · 2 comments
Closed

Orientation lock on phones #1834

dimipaun opened this issue Sep 14, 2020 · 2 comments

Comments

@dimipaun
Copy link
Contributor

There are many times when you'd like to lock the activities to portrait on the phone, but not on a tablet. For ex:
https://stackoverflow.com/questions/50596476/disable-landscape-orientation-for-phones-but-allow-for-tablets/50596650

This has to be done through code it seems.

Would a flag controlling this behavior be acceptable? E.g. setLockOrientationToPortraitOnSmallDevices(true)

@samtstern
Copy link
Contributor

@dimipaun thanks for the feedback. I'm open to something like this but I think it would just be setLockOrientation(...) and I'd leave it up to the developer to do conditional logic to only set that on small devices. What do you think?

@samtstern
Copy link
Contributor

This has been released in version 6.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants