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

Commit 4f80c7f2 authored by Mark Harman's avatar Mark Harman
Browse files

Fix bug for devices with min zoom less than 1x, when switching to/from modes...

Fix bug for devices with min zoom less than 1x, when switching to/from modes that don't support zoom.
parent 5f6e0809
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2087,7 +2087,7 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu

        // must be done after setting parameters, as this function may set parameters
        // also needs to be done after starting preview for some devices (e.g., Nexus 7)
        if( this.has_zoom && applicationInterface.getZoomPref() != 0 ) {
        if( this.has_zoom ) {
            int zoom_pref = applicationInterface.getZoomPref();
            if( zoom_pref == -1 ) {
                zoom_pref = find1xZoom();