mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
Merge pull request #2484 from KryptKode/fix/excluded_folders
excluded folders should not enforce storage restrictions on SDK 30+
This commit is contained in:
commit
b2faba3864
1 changed files with 9 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue