Merge pull request #67 from bcc0421/master

Fix issue that some HUAWEI scan error.
This commit is contained in:
Matthew Smith 2019-02-06 06:37:37 -08:00 committed by GitHub
commit c42b301c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,8 @@ class BarcodeScannerActivity : Activity(), ZXingScannerView.ResultHandler {
title = ""
scannerView = ZXingScannerView(this)
scannerView.setAutoFocus(true)
// this paramter will make your HUAWEI phone works great!
scannerView.setAspectTolerance(0.5f)
setContentView(scannerView)
}