Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f805822 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

5555-Camera_not_working_on_some_device_issue

issue: e/backlog#5555

stopPreview draw onPause
parent 267a2bd7
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;