diff --git a/app/src/main/java/net/sourceforge/opencamera/preview/Preview.java b/app/src/main/java/net/sourceforge/opencamera/preview/Preview.java index f7970c15f5c405891acc9741060c8467cb147223..380a35cb692d50daba14dbad5fb6c6c40b2f09d2 100644 --- a/app/src/main/java/net/sourceforge/opencamera/preview/Preview.java +++ b/app/src/main/java/net/sourceforge/opencamera/preview/Preview.java @@ -1202,7 +1202,7 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu if (MyDebug.LOG) { Log.d(TAG, "closeCamera: about to pause preview: " + (System.currentTimeMillis() - debug_time)); } - pausePreview(false); + pausePreview(true); // we set camera_controller to null before starting background thread, so that other callers won't try // to use it final CameraController camera_controller_local = camera_controller;