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

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)
} }
} }