From 6fbdb8aa51e2261bd249969df4bb0eb7ff4a4903 Mon Sep 17 00:00:00 2001 From: darthpaul Date: Thu, 26 May 2022 10:30:54 +0100 Subject: [PATCH] excluded folders should not enforce storage restrictions on SDK 30+ --- .../gallery/pro/activities/ExcludedFoldersActivity.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ExcludedFoldersActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ExcludedFoldersActivity.kt index 7eb953c4d..8dc1434b7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ExcludedFoldersActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ExcludedFoldersActivity.kt @@ -60,7 +60,15 @@ class ExcludedFoldersActivity : SimpleActivity(), RefreshRecyclerViewListener { } 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.addExcludedFolder(it) updateFolders()