From 33e4ca5d16a577abac07a323e7b5099237d61f16 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 23 Mar 2018 10:48:18 +0100 Subject: [PATCH] remove the Download folder from the explicitly included ones --- .../com/simplemobiletools/gallery/helpers/MediaFetcher.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt index 659636d1e..46fe56a5b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -201,13 +201,8 @@ class MediaFetcher(val context: Context) { } } - val downloadsFolder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString() val screenshotsFolder = "${Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)}/Screenshots" val foldersToScan = config.includedFolders - if (File(downloadsFolder).exists()) { - foldersToScan.add(downloadsFolder) - } - if (File(screenshotsFolder).exists()) { foldersToScan.add(screenshotsFolder) }