yuriy-budiyev / code-scanner

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

Flash triggering on (auto)focus #162

Closed NorthyFN closed 2 years ago

NorthyFN commented 2 years ago

On the Sony Xperia 5 the flash button doesn't work and every time the camera is focusing the flash comes on in low light situations (this might even make sense for some applications but isn't wanted here...) The flash doesn't activate when the autofocus mode is set to continous but is still does every time you click on the screen for manual focus. This seems to be a problem with the camera API similar to this problem https://stackoverflow.com/questions/28802276/how-to-stop-camera-flash-when-triggering-autofocus If this is a problem because of the outdated camera API I don't see a way of fixing this without changing the API but it would still be great to hear your thoughts @yuriy-budiyev

yuriy-budiyev commented 2 years ago

Camera2 API migration is planned, but I'm not sure when it will happen. Also, I can debug only on Pixel 5 and Galaxy S10, so I can't help with your problem.

NorthyFN commented 2 years ago

Great, thanks for your reply!