scan the included folder after adding on a background thread

This commit is contained in:
tibbi
2017-12-20 19:24:17 +01:00
parent 2d24b4baad
commit 3f88bb8e21
2 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,9 @@ class IncludedFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener {
FilePickerDialog(this, pickFile = false, showHidden = config.shouldShowHidden) {
config.addIncludedFolder(it)
updateIncludedFolders()
scanPath(it)
Thread {
scanPath(it)
}.start()
}
}
}