lets always use lastModified as dateTaken and hope nobody is using it
This commit is contained in:
parent
ef28b40186
commit
c1f1e92c14
|
@ -49,7 +49,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
|||
|
||||
val name = file.name
|
||||
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))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickVideo
|
|||
|
||||
val name = file.name
|
||||
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))
|
||||
}
|
||||
return media
|
||||
|
|
Loading…
Reference in New Issue