mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
fetch last modified more often, it is needed at cache
This commit is contained in:
parent
e86e6986c0
commit
4339a42eb3
1 changed files with 8 additions and 6 deletions
|
@ -319,14 +319,16 @@ class MediaFetcher(val context: Context) {
|
|||
media.add(this)
|
||||
}
|
||||
} else {
|
||||
var lastModified = 0L
|
||||
if (getProperLastModified) {
|
||||
var newLastModified = lastModifieds.remove(path)
|
||||
if (newLastModified == null) {
|
||||
newLastModified = file.lastModified()
|
||||
var lastModified: Long
|
||||
var newLastModified = lastModifieds.remove(path)
|
||||
if (newLastModified == null) {
|
||||
newLastModified = if (getProperLastModified) {
|
||||
file.lastModified()
|
||||
} else {
|
||||
0L
|
||||
}
|
||||
lastModified = newLastModified
|
||||
}
|
||||
lastModified = newLastModified
|
||||
|
||||
var dateTaken = lastModified
|
||||
val videoDuration = if (getVideoDurations && isVideo) context.getDuration(path) ?: 0 else 0
|
||||
|
|
Loading…
Reference in a new issue