mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fetch last modified more often, it is needed at cache
This commit is contained in:
@@ -319,14 +319,16 @@ class MediaFetcher(val context: Context) {
|
|||||||
media.add(this)
|
media.add(this)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var lastModified = 0L
|
var lastModified: Long
|
||||||
if (getProperLastModified) {
|
var newLastModified = lastModifieds.remove(path)
|
||||||
var newLastModified = lastModifieds.remove(path)
|
if (newLastModified == null) {
|
||||||
if (newLastModified == null) {
|
newLastModified = if (getProperLastModified) {
|
||||||
newLastModified = file.lastModified()
|
file.lastModified()
|
||||||
|
} else {
|
||||||
|
0L
|
||||||
}
|
}
|
||||||
lastModified = newLastModified
|
|
||||||
}
|
}
|
||||||
|
lastModified = newLastModified
|
||||||
|
|
||||||
var dateTaken = lastModified
|
var dateTaken = lastModified
|
||||||
val videoDuration = if (getVideoDurations && isVideo) context.getDuration(path) ?: 0 else 0
|
val videoDuration = if (getVideoDurations && isVideo) context.getDuration(path) ?: 0 else 0
|
||||||
|
Reference in New Issue
Block a user