From d0f580dec73e9c2b47fbd09dd20711997cff2970 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 17 Dec 2018 15:05:34 +0100 Subject: [PATCH] fix #989, rescan unhidden folders in the mediastore --- .../com/simplemobiletools/gallery/pro/extensions/Activity.kt | 1 + 1 file changed, 1 insertion(+) 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 3c742da68..0c8458d92 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 @@ -149,6 +149,7 @@ fun BaseSimpleActivity.removeNoMedia(path: String, callback: (() -> Unit)? = nul } tryDeleteFileDirItem(file.toFileDirItem(applicationContext), false, false) { + scanPathRecursively(file.parent) callback?.invoke() } }