do not add a folder to Included ones in a specific case, it is confusing

This commit is contained in:
tibbi 2020-04-18 12:26:38 +02:00
parent 22cfd20b58
commit 8ca190d8ef
2 changed files with 1 additions and 7 deletions

View File

@ -253,12 +253,6 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
}
}
}
} else {
config.addIncludedFolder(path)
activity.runOnUiThread {
listener?.refreshItems()
finishActMode()
}
}
}
}

View File

@ -146,7 +146,7 @@ fun BaseSimpleActivity.addNoMedia(path: String, callback: () -> Unit) {
val fileDocument = getDocumentFile(path)
if (fileDocument?.exists() == true && fileDocument.isDirectory) {
fileDocument.createFile("", NOMEDIA)
applicationContext.scanFileRecursively(file) {
applicationContext.scanPathRecursively(file.absolutePath) {
callback()
}
} else {