From 1634ed47a8cbc147feb40f8d8925ad410e0358fd Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 3 Mar 2020 16:55:24 +0100 Subject: [PATCH] do not rescan .nomedia file at hiding a folder, it can delete the file --- .../com/simplemobiletools/gallery/pro/extensions/Activity.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 a51b60e58..997773bbb 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 @@ -156,13 +156,10 @@ fun BaseSimpleActivity.addNoMedia(path: String, callback: () -> Unit) { } else { try { file.createNewFile() - applicationContext.scanFileRecursively(file) { - callback() - } } catch (e: Exception) { showErrorToast(e) - callback() } + callback() } }