// need to switch flash off for autofocus - and for Android L, need to do this before starting preview (otherwise it won't work in time); for old camera API, need to do this after starting preview!
set_flash_value_after_autofocus="";
@@ -1797,6 +1813,18 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu