From 4f805822ac447178aae56d68021750e2e647765a Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Thu, 9 Jun 2022 10:12:56 +0600 Subject: [PATCH] 5555-Camera_not_working_on_some_device_issue issue: https://gitlab.e.foundation/e/backlog/-/issues/5555 stopPreview draw onPause --- .../main/java/net/sourceforge/opencamera/preview/Preview.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f7970c15f..380a35cb6 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; -- GitLab