remove the Download folder from the explicitly included ones

This commit is contained in:
tibbi 2018-03-23 10:48:18 +01:00
parent 50af6a428e
commit 33e4ca5d16

View File

@ -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)
}