mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
do not try copying EXIF at edited videos
This commit is contained in:
parent
5ff7860d17
commit
3c33839686
2 changed files with 1 additions and 9 deletions
|
@ -78,7 +78,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:0c302e84d4'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:84c65f0f41'
|
||||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
||||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||||
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.22'
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.22'
|
||||||
|
|
|
@ -150,14 +150,6 @@ class NewVideoEditActivity : SimpleActivity() {
|
||||||
inputStream.close()
|
inputStream.close()
|
||||||
outputStream.close()
|
outputStream.close()
|
||||||
|
|
||||||
try {
|
|
||||||
if (isNougatPlus()) {
|
|
||||||
val newExif = ExifInterface(destinationFilePath)
|
|
||||||
oldExif?.copyTo(newExif, false)
|
|
||||||
}
|
|
||||||
} catch (ignored: Exception) {
|
|
||||||
}
|
|
||||||
|
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue