make sure to rescan a folder after deleting .nomedia file

This commit is contained in:
tibbi 2020-04-18 11:52:12 +02:00
parent e37f42a93c
commit 22cfd20b58
1 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,8 @@ fun BaseSimpleActivity.removeNoMedia(path: String, callback: (() -> Unit)? = nul
tryDeleteFileDirItem(file.toFileDirItem(applicationContext), false, false) { tryDeleteFileDirItem(file.toFileDirItem(applicationContext), false, false) {
callback?.invoke() callback?.invoke()
deleteFromMediaStore(file.absolutePath)
rescanFolderMedia(path)
} }
} }