journeyapps / zxing-android-embedded

Barcode scanner library for Android, based on the ZXing decoder
https://journeyapps.com/
Apache License 2.0
5.77k stars 1.27k forks source link

The laser blinking doesn't stop even after pausing the DecoratedBarcodeView #294

Open nabeel-nasir opened 7 years ago

nabeel-nasir commented 7 years ago

Description of the problem:

I am using the scanner in continuous decode mode with a custom layout. After each decode, I pause the scanner by calling mBarcodeView.pause(). I then have a 3-5 seconds delay where I process the result and only after that I resume the BarcodeView. But the laser in the ViewfinderView keeps blinking throughout this time, even though the BarcodeView is paused. Is there any way to pause/hide the laser blinking as well?

Which library version are you using? E.g. 3.2.0. 3.5 Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5, Android 5.0) LG Nexus 5X (Android 7.1.2) Does the same happen on other devices or an emulator? Yes. Can you reproduce the issue in the sample project included with the library? If not, can you provide your own sample project or sample code that produces this error?

In the case of an error do you have a stack trace or adb logs?

rkistner commented 7 years ago

Confirmed. The scanning and camera movement stops, but the red laser keeps on fading in and out.