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

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

Fix typo, should set gps if either latitude or longitude is missing.

parent fc031733
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4420,7 +4420,7 @@ public class ImageSaver extends Thread {
        }
        setCustomExif(exif, custom_tag_artist, custom_tag_copyright);

        if( store_location && ( !exif.hasAttribute(ExifInterface.TAG_GPS_LATITUDE) || !exif.hasAttribute(ExifInterface.TAG_GPS_LATITUDE) ) ) {
        if( store_location && ( !exif.hasAttribute(ExifInterface.TAG_GPS_LATITUDE) || !exif.hasAttribute(ExifInterface.TAG_GPS_LONGITUDE) ) ) {
            // We need this when using camera extensions (since Camera API doesn't support location for camera extensions).
            // But some devices (e.g., Pixel 6 Pro with Camera2 API) seem to not store location data, so we always check if we need to add it.
            // fine to ignore request.remove_device_exif, as this is a separate user option