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

Commit f53eea80 authored by Ruben Brunk's avatar Ruben Brunk Committed by Android (Google) Code Review
Browse files

Merge "Ensure consistent image thumbnail handling." into gb-ub-photos-bryce

parents afc46d5a aee6dffc
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);