Open aNnYvIrUs opened 7 years ago
I have the same issue, onQRCodeRead method is called twice sometimes even though I called QRCodeReaderView.stopCamera() in onQRCodeRead method.
It's not a proper solution but temporary i had use boolean in onQRCodeRead method to prevent this. boolean isProcessing = false; //Inside method qrCodeReaderView.stopCamera(); if (!isProcessing) { isProcessing = true; Toast.makeText(activity, "Code==>" + barCode, Toast.LENGTH_SHORT).show(); } and then while you start/resume the camera then make variable false.
Dear @aNnYvIrUs , currently that's an worthwhile solution. Thanks so much 👍
There is an open PR for this, but so far nobody responded to it:
I think this lib is not maintained anymore
@datnt1987 @Rolf-Smit sorry for the delayed response. #120 is now merged, I'll release a new version asap. I'll close the issue once the release is out
You can disable QR code decoding once it's read the QR. qrCodeReaderView?.setQRDecodingEnabled(false)
Please check this onQRCodeRead method called twice.