fixing some compile errors
This commit is contained in:
parent
51475a4c65
commit
e7c63a8b52
1 changed files with 4 additions and 4 deletions
|
@ -223,15 +223,15 @@ fun Context.getDirectParentSubfolders(dirs: ArrayList<Directory>, currentPathPre
|
|||
val subDirs = dirs.filter { File(it.path).parent.equals(File(path).parent, true) } as ArrayList<Directory>
|
||||
if (subDirs.isNotEmpty()) {
|
||||
val lastModified = if (isSortingAscending) {
|
||||
subDirs.minBy { it.modified }?.modified
|
||||
subDirs.minByOrNull { it.modified }?.modified
|
||||
} else {
|
||||
subDirs.maxBy { it.modified }?.modified
|
||||
subDirs.maxByOrNull { it.modified }?.modified
|
||||
} ?: 0
|
||||
|
||||
val dateTaken = if (isSortingAscending) {
|
||||
subDirs.minBy { it.taken }?.taken
|
||||
subDirs.minByOrNull { it.taken }?.taken
|
||||
} else {
|
||||
subDirs.maxBy { it.taken }?.taken
|
||||
subDirs.maxByOrNull { it.taken }?.taken
|
||||
} ?: 0
|
||||
|
||||
var mediaTypes = 0
|
||||
|
|
Loading…
Reference in a new issue