fix #1913, prefer the Last Modified value from mediastore, not our db

This commit is contained in:
tibbi 2020-09-16 21:09:10 +02:00
parent 78f1a74095
commit 6325121969
2 changed files with 4 additions and 2 deletions

View file

@ -77,7 +77,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.30.4'
implementation 'com.simplemobiletools:commons:5.30.5'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'it.sephiroth.android.exif:library:1.0.1'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.19'

View file

@ -486,7 +486,9 @@ class MediaFetcher(val context: Context) {
}
lastModifiedValues.forEach {
lastModifieds[it.fullPath] = it.taken
if (!lastModifieds.containsKey(it.fullPath)) {
lastModifieds[it.fullPath] = it.lastModified
}
}
return lastModifieds