File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/content Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,7 @@ internal class ImageExifTagRemover @Inject constructor(
50
50
} ? : return @withContext jpegImageFile
51
51
52
52
tryOrNull(" Unable to remove ExifData" ) {
53
- outputSet.removeField(ExifTagConstants .EXIF_TAG_GPSINFO )
54
- outputSet.removeField(ExifTagConstants .EXIF_TAG_SUBJECT_LOCATION )
55
- outputSet.removeField(ExifTagConstants .EXIF_TAG_USER_COMMENT )
56
- GpsTagConstants .ALL_GPS_TAGS .forEach { tagInfo ->
53
+ tagsToRemove.forEach { tagInfo ->
57
54
outputSet.removeField(tagInfo)
58
55
}
59
56
} ? : return @withContext jpegImageFile
@@ -74,4 +71,12 @@ internal class ImageExifTagRemover @Inject constructor(
74
71
}
75
72
)
76
73
}
74
+
75
+ private val tagsToRemove
76
+ get() = GpsTagConstants .ALL_GPS_TAGS +
77
+ listOf (
78
+ ExifTagConstants .EXIF_TAG_GPSINFO ,
79
+ ExifTagConstants .EXIF_TAG_SUBJECT_LOCATION ,
80
+ ExifTagConstants .EXIF_TAG_USER_COMMENT ,
81
+ )
77
82
}
You can’t perform that action at this time.
0 commit comments