Commit 9919ead1 authored by Max Lv's avatar Max Lv

Disable AutoFocus and Flash

parent f6c4d2ea
......@@ -50,6 +50,9 @@ class ScannerActivity extends AppCompatActivity with ZXingScannerView.ResultHand
setupToolbar()
scannerView = new ZXingScannerView(this)
scannerView.setAutoFocus(false)
scannerView.setFlash(false)
val contentFrame = findViewById(R.id.content_frame).asInstanceOf[ViewGroup]
contentFrame.addView(scannerView)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment