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

Commit aee6dffc authored by Ruben Brunk's avatar Ruben Brunk
Browse files

Ensure consistent image thumbnail handling.

Bug: 7192433

Change-Id: Ie86ade06b7234681a0d955a87cacfb337bc39145
parent 91d26f6c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -197,6 +197,9 @@ public class SaveCopyTask extends AsyncTask<ImagePreset, Void, Uri> {
                exif.setTag(exif.buildTag(ExifInterface.TAG_ORIENTATION,
                        ExifInterface.Orientation.TOP_LEFT));

                // Remove old thumbnail
                exif.removeCompressedThumbnail();

                // If we succeed in writing the bitmap as a jpeg, return a uri.
                if (putExifData(this.destinationFile, exif, bitmap)) {
                    putPanoramaXMPData(this.destinationFile, xmp);