mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-30 19:56:44 +01:00
always copy over exif data at file editing
This commit is contained in:
parent
b3945d5e27
commit
067caeeeeb
1 changed files with 6 additions and 6 deletions
|
@ -185,14 +185,14 @@ class NewEditActivity : SimpleActivity() {
|
||||||
if (config.keepLastModified) {
|
if (config.keepLastModified) {
|
||||||
// add 1 s to the last modified time to properly update the thumbnail
|
// add 1 s to the last modified time to properly update the thumbnail
|
||||||
updateLastModified(destinationFilePath, sourceFileLastModified + 1000)
|
updateLastModified(destinationFilePath, sourceFileLastModified + 1000)
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (isNougatPlus()) {
|
if (isNougatPlus()) {
|
||||||
val newExif = ExifInterface(destinationFilePath)
|
val newExif = ExifInterface(destinationFilePath)
|
||||||
oldExif?.copyTo(newExif, false)
|
oldExif?.copyTo(newExif, false)
|
||||||
}
|
|
||||||
} catch (ignored: Exception) {
|
|
||||||
}
|
}
|
||||||
|
} catch (ignored: Exception) {
|
||||||
}
|
}
|
||||||
|
|
||||||
val paths = arrayListOf(destinationFilePath)
|
val paths = arrayListOf(destinationFilePath)
|
||||||
|
|
Loading…
Reference in a new issue