do not rescan .nomedia file at hiding a folder, it can delete the file

This commit is contained in:
tibbi 2020-03-03 16:55:24 +01:00
parent de55e274c4
commit 1634ed47a8
1 changed files with 1 additions and 4 deletions

View File

@ -156,13 +156,10 @@ fun BaseSimpleActivity.addNoMedia(path: String, callback: () -> Unit) {
} else {
try {
file.createNewFile()
applicationContext.scanFileRecursively(file) {
callback()
}
} catch (e: Exception) {
showErrorToast(e)
callback()
}
callback()
}
}