Merge pull request #2484 from KryptKode/fix/excluded_folders

excluded folders should not enforce storage restrictions on SDK 30+
This commit is contained in:
Tibor Kaputa 2022-05-26 16:21:21 +02:00 committed by GitHub
commit b2faba3864
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,15 @@ class ExcludedFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener {
} }
private fun addFolder() { private fun addFolder() {
FilePickerDialog(this, internalStoragePath, false, config.shouldShowHidden, false, true) { FilePickerDialog(
activity = this,
internalStoragePath,
pickFile = false,
config.shouldShowHidden,
showFAB = false,
canAddShowHiddenButton = true,
enforceStorageRestrictions = false,
) {
config.lastFilepickerPath = it config.lastFilepickerPath = it
config.addExcludedFolder(it) config.addExcludedFolder(it)
updateFolders() updateFolders()