mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
fix #1913, prefer the Last Modified value from mediastore, not our db
This commit is contained in:
parent
78f1a74095
commit
6325121969
2 changed files with 4 additions and 2 deletions
|
@ -77,7 +77,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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 '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.19'
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.19'
|
||||||
|
|
|
@ -486,7 +486,9 @@ class MediaFetcher(val context: Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
lastModifiedValues.forEach {
|
lastModifiedValues.forEach {
|
||||||
lastModifieds[it.fullPath] = it.taken
|
if (!lastModifieds.containsKey(it.fullPath)) {
|
||||||
|
lastModifieds[it.fullPath] = it.lastModified
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return lastModifieds
|
return lastModifieds
|
||||||
|
|
Loading…
Reference in a new issue