cameraview
cameraview copied to clipboard
FLASH_TORCH sticks until FLASH_OFF is used
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