custom-selector: adds a button to delete the current folder in custom selector (#5925)

* Issue #5811: "Delete folder" menu in custom image selector

* Issue 5811: folder deletion for api < 29.

* Issue 5811: folder deletion for api < 29.

* Issue 5811: folder deletion for api 29.

* Issue 5811: folder deletion

* Issue 5811: fixes merge conflicts, replaces used function onActivityResult with an ActivityResultLauncher

* Update Constants.java

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
StrawberryShortcake 2024-11-13 14:11:38 +01:00 committed by GitHub
parent 17a8845dfd
commit 634bc3ede1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 447 additions and 12 deletions

View file

@ -51,6 +51,13 @@
android:summary="@string/display_campaigns_explanation"
android:title="@string/display_campaigns" />
<SwitchPreference
android:defaultValue="false"
android:key="displayDeletionButton"
app:singleLineTitle="false"
android:summary="Enable the &quot;Delete folder&quot; button in the custom picker"
android:title="Show Deletion Button" />
</PreferenceCategory>
<PreferenceCategory