mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
lets always use lastModified as dateTaken and hope nobody is using it
This commit is contained in:
@ -49,7 +49,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
|||||||
|
|
||||||
val name = file.name
|
val name = file.name
|
||||||
val path = file.absolutePath
|
val path = file.absolutePath
|
||||||
val dateModified = if (fileSorting and SORT_BY_DATE_MODIFIED != 0) file.lastModified() else 0
|
val dateModified = if (fileSorting and SORT_BY_DATE_MODIFIED != 0) file.lastModified() else file.lastModified()
|
||||||
media.add(Medium(name, path, isVideo, dateModified, dateModified, size))
|
media.add(Medium(name, path, isVideo, dateModified, dateModified, size))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickVideo
|
|||||||
|
|
||||||
val name = file.name
|
val name = file.name
|
||||||
val absolutePath = file.absolutePath
|
val absolutePath = file.absolutePath
|
||||||
val dateModified = if (fileSorting and SORT_BY_DATE_MODIFIED != 0) file.lastModified() else 0
|
val dateModified = if (fileSorting and SORT_BY_DATE_MODIFIED != 0) file.lastModified() else file.lastModified()
|
||||||
media.add(Medium(name, absolutePath, isVideo, dateModified, dateModified, size))
|
media.add(Medium(name, absolutePath, isVideo, dateModified, dateModified, size))
|
||||||
}
|
}
|
||||||
return media
|
return media
|
||||||
|
Reference in New Issue
Block a user