mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-11-01 08:29:21 +08:00
Fix issue that some HUAWEI scan error.
This commit is contained in:
parent
af8fa170db
commit
82f461185d
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user