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

Lock Screen Orientation on Android Tablets #18

Open
pjwl33 opened this issue Feb 11, 2019 · 4 comments
Open

Lock Screen Orientation on Android Tablets #18

pjwl33 opened this issue Feb 11, 2019 · 4 comments

Comments

@pjwl33
Copy link

pjwl33 commented Feb 11, 2019

Hi is there anyway to lock the screen orientation on scanner plugin or at least inherit those properties from the app itself?

Currently rotates the scanner and the dimensions are not always fit to screen (on tablet) even if the application it is a part of has a locked orientation.

Thank you.

@forrestmid
Copy link
Contributor

forrestmid commented Feb 11, 2019 via email

@pjwl33
Copy link
Author

pjwl33 commented Feb 11, 2019 via email

@forrestmid forrestmid changed the title Lock screen orientation Lock Screen Orientation on Android Tablets Feb 12, 2019
@forrestmid
Copy link
Contributor

Looks like the code on android that is supposed to be handling this and forcing it to portrait is here. I did a couple searches and found some StackOverflow answers indicating that the only time you need to do anything special for tablets is when you want to allow the tablet into landscape mode but not allow the phone, so this code should be functioning properly as-is.

I'd start playing with the code around that link above and see if it can be adjusted to fix this landscape orientation issue for Android tablets.

@pjwl33
Copy link
Author

pjwl33 commented Feb 12, 2019 via email

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