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

Commit 922b82e5 authored by Mark Harman's avatar Mark Harman
Browse files

Don't block UI thread when starting camera preview (for Camera2 API with Android 14+).

parent 22a38c94
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ UPDATED Smooth zoom transition when using zoom seekbar (for Camera2 API).
UPDATED Removed -/+ controls for zoom and exposure compensation (these "zoom controls" are now
        deprecated in Android).
UPDATED Also hide settings icon when taking a photo.
UPDATED Don't block UI thread when starting camera preview (for Camera2 API with Android 14+).

Version 1.54.1 (2025/04/07)

+2 −1
Original line number Diff line number Diff line
@@ -1982,7 +1982,8 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu
                Log.d(TAG, "openCamera: time after setting preview display: " + (System.currentTimeMillis() - debug_time));
            }

            final boolean wait_until_started = true;
            //final boolean wait_until_started = true;
            final boolean wait_until_started = !( using_android_l && Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE );
            //final boolean wait_until_started = false; // test
            if( MyDebug.LOG )
                Log.d(TAG, "wait_until_started: " + wait_until_started);