yuriy-budiyev / code-scanner

Code scanner library for Android, based on ZXing
MIT License
1.1k stars 267 forks source link

Why is CodeScanner.startPreview()/stopPreview() forced into the @MainThread? #97

Open Hersy opened 4 years ago

Hersy commented 4 years ago

This forces UI transitions (like fragment animations or loaders, you know, to show the camera is loading) to completely stop until the preview is started. This greatly damages user experience. Is there a workaround this?