mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
remove the Download folder from the explicitly included ones
This commit is contained in:
parent
50af6a428e
commit
33e4ca5d16
1 changed files with 0 additions and 5 deletions
|
@ -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 a new issue