fixing some compile errors

This commit is contained in:
tibbi 2021-06-16 23:12:48 +02:00
parent 51475a4c65
commit e7c63a8b52

View file

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