Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…barcode_reader into GabrieleVolpato-patch-1
  • Loading branch information
devtronic committed May 8, 2020
2 parents 88bd07a + dd10f52 commit 6d2e614
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ class BarcodeScannerActivity : Activity(), ZXingScannerView.ResultHandler {
super.onResume()
setupScannerView()
scannerView?.setResultHandler(this)
scannerView?.startCamera()
if (config.useCamera > -1) {
scannerView?.startCamera(config.useCamera)
} else {
scannerView?.startCamera()
}
}
// endregion

Expand Down

0 comments on commit 6d2e614

Please sign in to comment.