mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-11-22 21:49:20 +08:00
Merge pull request #67 from bcc0421/master
Fix issue that some HUAWEI scan error.
This commit is contained in:
commit
c42b301c18
@ -28,6 +28,8 @@ class BarcodeScannerActivity : Activity(), ZXingScannerView.ResultHandler {
|
|||||||
title = ""
|
title = ""
|
||||||
scannerView = ZXingScannerView(this)
|
scannerView = ZXingScannerView(this)
|
||||||
scannerView.setAutoFocus(true)
|
scannerView.setAutoFocus(true)
|
||||||
|
// this paramter will make your HUAWEI phone works great!
|
||||||
|
scannerView.setAspectTolerance(0.5f)
|
||||||
setContentView(scannerView)
|
setContentView(scannerView)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user