lets always use lastModified as dateTaken and hope nobody is using it

This commit is contained in:
tibbi 2017-01-13 23:38:56 +01:00
parent ef28b40186
commit c1f1e92c14
2 changed files with 2 additions and 2 deletions

View File

@ -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))
} }
} }

View File

@ -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