From 19ea96814ea15378c3c5e4515cf143e03ef2d6e6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 21 May 2017 20:39:01 +0200 Subject: [PATCH] do not rescan the folder after removing nomedia --- .../com/simplemobiletools/gallery/extensions/activity.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt index 05e13b6ba..ead1336a2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/activity.kt @@ -235,9 +235,7 @@ fun SimpleActivity.addNoMedia(path: String, callback: () -> Unit) { fun SimpleActivity.removeNoMedia(path: String, callback: () -> Unit) { val file = File(path, NOMEDIA) deleteFile(file) { - scanFile(File(path)) { - callback() - } + callback() } }