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

Commit 3edfdab2 authored by Chong Zhang's avatar Chong Zhang
Browse files

insert exif info for HEIF files

bug: 76125031
Test: push some HEIC files with rotation to sdcard, and query
the content provider to see the orientation field is set.

Change-Id: I8235cbcd2aad2f0088d771ee53d2ca87cd85800d
parent 86259365
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -946,6 +946,7 @@ public class MediaScanner implements AutoCloseable {
                values.put(Audio.Media.IS_MUSIC, music);
                values.put(Audio.Media.IS_PODCAST, podcasts);
            } else if ((mFileType == MediaFile.FILE_TYPE_JPEG
                    || mFileType == MediaFile.FILE_TYPE_HEIF
                    || MediaFile.isRawImageFileType(mFileType)) && !mNoMedia) {
                ExifInterface exif = null;
                try {