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

[Fixed] Ratio issue in landscape mode with tablet (Android) #112

Open
jbesan opened this issue Jul 5, 2017 · 1 comment
Open

[Fixed] Ratio issue in landscape mode with tablet (Android) #112

jbesan opened this issue Jul 5, 2017 · 1 comment

Comments

@jbesan
Copy link

jbesan commented Jul 5, 2017

Dear All,

Just to share a trick/fix I've found to prevent an annoying issue.

When using this plugin on an Android Tablet (Sony Xperia Z4, Nexus 9) in landscape mode, launching zBar would make it look "shrinked" (wrong ratio) in the middle of the screen. It still works but it is not nice looking and users prefer then to switch to portrait mode.

I am not a java dev but I understood that the problem was coming from the matchSurfaceToPreviewRatio() function inside ZBarScannerActivity.java

Therefore I've just commented the 2 occurrences where the app is calling this function and it works much better.

Hope it helps.

@Eduardo-Vieira
Copy link

I took the test here and also had a good result.

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