From 22cfd20b5816e055502b1394e5cd234d483d3965 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 18 Apr 2020 11:52:12 +0200 Subject: [PATCH] make sure to rescan a folder after deleting .nomedia file --- .../com/simplemobiletools/gallery/pro/extensions/Activity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt index a7fd3d716..f49686aad 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt @@ -173,6 +173,8 @@ fun BaseSimpleActivity.removeNoMedia(path: String, callback: (() -> Unit)? = nul tryDeleteFileDirItem(file.toFileDirItem(applicationContext), false, false) { callback?.invoke() + deleteFromMediaStore(file.absolutePath) + rescanFolderMedia(path) } }