add an extra check to avoid showing duplicate folders

This commit is contained in:
tibbi 2018-04-25 23:59:17 +02:00
parent b4f44df183
commit 688b0e2624

View file

@ -276,7 +276,7 @@ fun Context.getCachedDirectories(getVideosOnly: Boolean = false, getImagesOnly:
}
}) as ArrayList<Directory>
callback(filteredDirectories)
callback(filteredDirectories.distinctBy { it.path.toLowerCase() } as ArrayList<Directory>)
removeInvalidDBDirectories(directories, directoryDao)
}.start()