From e7c63a8b525526f8e1678d3073a6caf35dae4fbb Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 16 Jun 2021 23:12:48 +0200 Subject: [PATCH] fixing some compile errors --- .../simplemobiletools/gallery/pro/extensions/Context.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt index ad27c0495..021df6be3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt @@ -223,15 +223,15 @@ fun Context.getDirectParentSubfolders(dirs: ArrayList, currentPathPre val subDirs = dirs.filter { File(it.path).parent.equals(File(path).parent, true) } as ArrayList 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