remove the Download folder from the explicitly included ones
This commit is contained in:
parent
50af6a428e
commit
33e4ca5d16
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue