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

Commit c841af26 authored by Mark Harman's avatar Mark Harman Committed by Mohammed Althaf T
Browse files

Fix crash when saving images if unable to create thumbnail.

parent 65267255
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ Version 1.53 (Work in progress)

FIXED   Device specific crashes when starting with Camera2 API (related to camera vendor
        extensions).
FIXED   Crash when saving images if unable to create thumbnail.
FIXED   If force destroyed when in settings, the camera would be incorrectly opened when application
        was recreated (camera should only be reopened when leaving settings).
ADDED   Camera vendor extensions show percentage progress on supported Android 14 devices.
+4 −0
Original line number Diff line number Diff line
@@ -3718,6 +3718,10 @@ public class ImageSaver extends Thread {
    private Bitmap rotateForExif(Bitmap bitmap, byte [] data) {
        if( MyDebug.LOG )
            Log.d(TAG, "rotateForExif");
        if( bitmap == null ) {
            // support thumbnail being null - as this can happen according to Google Play crashes, see comment in saveSingleImageNow()
            return null;
        }
        InputStream inputStream = null;
        try {
            ExifInterface exif;