Resolve alternating flash during autofocus

This commit is contained in:
Daniel Cousens 2016-04-13 12:06:23 +10:00
parent a4a736ce0f
commit 507444ffd0

View File

@ -179,7 +179,7 @@ implements SurfaceHolder.Callback {
Camera.Parameters camParams = camera.getParameters(); Camera.Parameters camParams = camera.getParameters();
if(flashMode.equals("on")) { if(flashMode.equals("on")) {
camParams.setFlashMode(Camera.Parameters.FLASH_MODE_ON); camParams.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
} else if(flashMode.equals("off")) { } else if(flashMode.equals("off")) {
camParams.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); camParams.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
} else { } else {