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

Couldn't scan at store with dark theme #328

Closed
TheLastProject opened this issue Dec 10, 2019 · 7 comments · Fixed by #329
Closed

Couldn't scan at store with dark theme #328

TheLastProject opened this issue Dec 10, 2019 · 7 comments · Fixed by #329

Comments

@TheLastProject
Copy link
Contributor

Just so I don't forget to test this again. Local grocery store, barcode type EAN_13. Code scans fine on light theme.

@brarcher
Copy link
Owner

Can you clarify what you found when using the dark theme to scan a barcode at the store? Did you find an issue with 2D barcodes? I see that change #329 adds more white space around all barcodes, effectively making the rendered barcodes smaller and adding more quiet space. Perhaps the Zxing library is not leaving enough quiet space around 2D barcodes?

@TheLastProject
Copy link
Contributor Author

Well, I only have one store where I could test, which used an EAN_13 barcode, thus I have no clue if it affects other barcode types at all.

While at the store, it took me a lot of effort to attempt to scan the barcode (and I didn't succeed) but the moment I switched to the light theme it scanned instantly. My idea was indeed that there was not enough "quiet space" (if I look at the physical loyalty card, the card is mostly blue but there is a white border around the barcode similar to what my patch adds). Scanning the barcode after adding the quiet space in this patch did make it scan instantly even on the dark theme.

So, I know that at least for the EAN_13 barcode this fixes some scanners not picking it up properly, but I indeed do not know the effect it would have on other barcodes, but I would assume they would likely have the same issue.

@brarcher
Copy link
Owner

One other thing that may be worth checking is that this app uses ZXing 3.3.0, and 3.4.0 is now available. Maybe there is an improvement in 3.4.0 that helps. zxing-android-embedded also has an update available.

@TheLastProject
Copy link
Contributor Author

I just updated both zxing and xzing-android-embedded to the latest version locally to try and that made no difference.

@TheLastProject
Copy link
Contributor Author

I actually managed to successfully scan with dark mode without this patch several times now. I guess I just had bad luck that one time. Closing this issue.

@TheLastProject
Copy link
Contributor Author

Had to again switch to the light theme. I think one of the scanners at the local grocery store is having more trouble than the others. This should probably be fixed by #329 anyway

@TheLastProject
Copy link
Contributor Author

I would strongly suggest merging #329 in before releasing to Google Play as it can't cause harm but will likely improve the scanning situation in the dark theme a lot (I never had issues with the patch applied and only ever without it).

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

Successfully merging a pull request may close this issue.

2 participants