google / cameraview

[DEPRECATED] Easily integrate Camera features into your Android app
Apache License 2.0
4.74k stars 1.03k forks source link

FLASH_TORCH sticks until FLASH_OFF is used #259

Open yperess opened 5 years ago

yperess commented 5 years ago

If we alter the line at https://github.com/google/cameraview/blob/master/demo/src/main/java/com/google/android/cameraview/demo/MainActivity.java#L72 to:

CameraView.FLASH_TORCH

You'll notice that the flash light doesn't turn off until we reach FLASH_OFF. I would have expected FLASH_AUTO to also leave the flash off until the capture.

https://stackoverflow.com/questions/53003383/android-camera2-api-cant-turn-off-torch-mode