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

Commit fa2a9865 authored by Mark Harman's avatar Mark Harman
Browse files

Don't allow focus assist when recording video (quick fix to prevent zoom...

Don't allow focus assist when recording video (quick fix to prevent zoom showing up in resultant video...)
parent 1bb97b2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -608,7 +608,7 @@ to only have the preview showing.</li>

<p><b>Focus assist</b> - If enabled, this will show a zoomed in view on the camera preview when in manual focus mode, and you
are changing the manual focus distance. Similarly in focus bracketing mode, the preview will zoom in when changing the focus
distances to bracket between.</p>
distances to bracket between. Note not supported when recording video.</p>

<p><b>Show face detection icon</b> - Whether to display an on-screen icon for enabling or disabling face detection. See
	<a href="#auto_stabilise">Auto-level feature</a> above for more details.</p>
+4 −0
Original line number Diff line number Diff line
@@ -48,6 +48,10 @@
<p>&lt; <small><a href="index.html">Main Page.</a></small></p>

<pre>
Version 1.45.2 (Work in progress)

FIXED   Don't allow focus assist when recording video.

Version 1.45.1 (2019/01/18)

FIXED   Crash when saving settings if SAF enabled, and save location does not correspond to a file
+5 −1
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ public class MyApplicationInterface extends BasicApplicationInterface {
		return sharedPreferences.getString(PreferenceKeys.getFocusPreferenceKey(cameraId, is_video), "");
    }

    public int getFocusAssistPref() {
    int getFocusAssistPref() {
		String focus_assist_value = sharedPreferences.getString(PreferenceKeys.FocusAssistPreferenceKey, "0");
		int focus_assist;
		try {
@@ -307,6 +307,10 @@ public class MyApplicationInterface extends BasicApplicationInterface {
    		e.printStackTrace();
    		focus_assist = 0;
        }
        if( focus_assist > 0 && main_activity.getPreview().isVideoRecording() ) {
			// focus assist not currently supported while recording video - don't want to zoom the resultant video!
    		focus_assist = 0;
		}
		return focus_assist;
    }