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

Commit 3a4db4a0 authored by Mark Harman's avatar Mark Harman
Browse files

Crash when saving settings but no image folder - shouldn't be dependent on image folder!

parent 78f83bde
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -50,6 +50,8 @@
<pre>
Version 1.45.1 (Work in progress)

FIXED   Crash when saving settings if SAF enabled, and save location does not correspond to a file
        based directory.
FIXED   Some devices in Camera2 mode lost support for modes requiring burst or manual ISO/exposure.

Version 1.45 (2019/01/14)
+1 −6
Original line number Diff line number Diff line
@@ -546,11 +546,6 @@ public class StorageUtils {
        return mediaFilename;
    }

	private File createOutputMediaFile(String mediaFilename) {
    	File mediaStorageDir = getImageFolder();
		return new File(mediaStorageDir.getPath() + File.separator + mediaFilename);
	}

    // only valid if !isUsingSAF()
	File createOutputMediaFile(int type, String suffix, String extension, Date current_date) throws IOException {
        File mediaStorageDir = getImageFolder();
@@ -601,7 +596,7 @@ public class StorageUtils {
			}
			else*/ {
				String mediaFilename = createMediaFilename(type, suffix, count, "." + extension, current_date);
				mediaFile = createOutputMediaFile(mediaFilename);
				mediaFile = new File(mediaStorageDir.getPath() + File.separator + mediaFilename);
			}
            if( !mediaFile.exists() ) {
            	break;