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

View file

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