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

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

Possible crash when failing to save with Storage Access Framework.

parent ccb321ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@
Version 1.52 (Working in progress)

FIXED   Crash related to multi-camera devices.
FIXED   Possible crash when failing to save with Storage Access Framework.
FIXED   Don't show zebra stripes, focus peaking or histogram, when displaying resultant photo for
        "Pause after taking photo" option.
FIXED   Problem where clicking on gallery icon would sometimes go to a "base" image instead of HDR
+7 −0
Original line number Diff line number Diff line
@@ -811,6 +811,13 @@ public class StorageUtils {
            e.printStackTrace();
            throw new IOException();
        }
        catch(NullPointerException e) {
            // Have reports of this from Google Play for DocumentsContract.createDocument - better to fail gracefully and tell user rather than crash!
            if( MyDebug.LOG )
                Log.e(TAG, "createOutputMediaFileSAF failed with NullPointerException");
            e.printStackTrace();
            throw new IOException();
        }
        catch(SecurityException e) {
            // Have reports of this from Google Play - better to fail gracefully and tell user rather than crash!
            if( MyDebug.LOG )