Resolve alternating flash during autofocus
This commit is contained in:
parent
a4a736ce0f
commit
507444ffd0
@ -179,7 +179,7 @@ implements SurfaceHolder.Callback {
|
||||
|
||||
Camera.Parameters camParams = camera.getParameters();
|
||||
if(flashMode.equals("on")) {
|
||||
camParams.setFlashMode(Camera.Parameters.FLASH_MODE_ON);
|
||||
camParams.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
|
||||
} else if(flashMode.equals("off")) {
|
||||
camParams.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user