File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/content Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -53,16 +53,9 @@ internal class ImageExifTagRemover @Inject constructor(
53
53
outputSet.removeField(ExifTagConstants .EXIF_TAG_GPSINFO )
54
54
outputSet.removeField(ExifTagConstants .EXIF_TAG_SUBJECT_LOCATION )
55
55
outputSet.removeField(ExifTagConstants .EXIF_TAG_USER_COMMENT )
56
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_ALTITUDE )
57
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_ALTITUDE_REF )
58
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_LONGITUDE )
59
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_LONGITUDE_REF )
60
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_DEST_LONGITUDE )
61
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_DEST_LONGITUDE_REF )
62
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_LATITUDE )
63
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_LATITUDE_REF )
64
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_DEST_LATITUDE )
65
- outputSet.removeField(GpsTagConstants .GPS_TAG_GPS_DEST_LATITUDE_REF )
56
+ GpsTagConstants .ALL_GPS_TAGS .forEach { tagInfo ->
57
+ outputSet.removeField(tagInfo)
58
+ }
66
59
} ? : return @withContext jpegImageFile
67
60
68
61
val scrubbedFile = temporaryFileCreator.create()
You can’t perform that action at this time.
0 commit comments