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

Commit 23effda2 authored by Mark Harman's avatar Mark Harman
Browse files

Checks for zoom_transition_runnable.

parent 0f0fe312
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4444,6 +4444,11 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu

                    zoom_transition_runnable = new Runnable() {
                        public void run() {
                            // check just in case camera is closed or changed to a state where has_zoom==false,
                            // without cancelling the zoom_transition_runnable
                            if( camera_controller == null || !has_zoom ) {
                                return;
                            }
                            int this_zoom_value;
                            long time = System.currentTimeMillis() - start_time;
                            time += delay; // so we have a quicker transition