rescan created .nomedia files at hiding folders

This commit is contained in:
tibbi 2020-05-04 11:29:36 +02:00
parent 69addc428a
commit 6c77382f60
1 changed files with 33 additions and 29 deletions

View File

@ -156,7 +156,11 @@ fun BaseSimpleActivity.addNoMedia(path: String, callback: () -> Unit) {
}
} else {
try {
file.createNewFile()
if (file.createNewFile()) {
rescanFolderMedia(file.absolutePath)
} else {
toast(R.string.unknown_error_occurred)
}
} catch (e: Exception) {
showErrorToast(e)
}