fixing an error with no folders for scanning

This commit is contained in:
tibbi 2019-09-10 09:34:49 +02:00
parent d76f3595ec
commit 4d016a9e09

View file

@ -178,7 +178,7 @@ class MediaFetcher(val context: Context) {
val showHidden = config.shouldShowHidden
val excludedFolders = config.excludedFolders
foldersToScan = foldersToScan.filter { it.shouldFolderBeVisible(excludedFolders, includedFolders, showHidden) } as ArrayList<String>
return foldersToScan.distinctBy { it.getDistinctPath() }.toSet() as LinkedHashSet<String>
return foldersToScan.distinctBy { it.getDistinctPath() }.toMutableSet() as LinkedHashSet<String>
}
private fun addFolder(curFolders: ArrayList<String>, folder: String) {