mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
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>
|
val subDirs = dirs.filter { File(it.path).parent.equals(File(path).parent, true) } as ArrayList<Directory>
|
||||||
if (subDirs.isNotEmpty()) {
|
if (subDirs.isNotEmpty()) {
|
||||||
val lastModified = if (isSortingAscending) {
|
val lastModified = if (isSortingAscending) {
|
||||||
subDirs.minBy { it.modified }?.modified
|
subDirs.minByOrNull { it.modified }?.modified
|
||||||
} else {
|
} else {
|
||||||
subDirs.maxBy { it.modified }?.modified
|
subDirs.maxByOrNull { it.modified }?.modified
|
||||||
} ?: 0
|
} ?: 0
|
||||||
|
|
||||||
val dateTaken = if (isSortingAscending) {
|
val dateTaken = if (isSortingAscending) {
|
||||||
subDirs.minBy { it.taken }?.taken
|
subDirs.minByOrNull { it.taken }?.taken
|
||||||
} else {
|
} else {
|
||||||
subDirs.maxBy { it.taken }?.taken
|
subDirs.maxByOrNull { it.taken }?.taken
|
||||||
} ?: 0
|
} ?: 0
|
||||||
|
|
||||||
var mediaTypes = 0
|
var mediaTypes = 0
|
||||||
|
|
Loading…
Reference in a new issue