Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 8 commits into from
Nov 13, 2024

Conversation

why-lab
Copy link
Contributor

@why-lab why-lab commented Nov 8, 2024

Description (required)

Fixes #5811

What changes did you make and why?

Add functionality to enable folder deletion within the custom selector activity.

Folder Deletion Helper: encapsulates most of folder deletion logic, provides methods to confirm deletion with the user, handle deletion across different Android API levels, and display success or error messages.

CustomSelectorActivity: integrated folder deletion functionality into the custom selector activity, allowing users to select a folder and choose to delete it from the custom selector UI.

In custom selector toolbar, added overflow menu button, moved existing exceeding limit warning button a bit to the left to make space for overflow menu.

Tests performed (required)
Build variant: BetaDebug
Emulators:
Android 12.0 (S) - API 31
Android 10.0 (Q) - API 29
Android 8.0 (Oreo) - API 26

Screenshots (for UI changes only)
confirmDialogNew
deleted_successfully
confirmDialogOld
delete_option
overflow_menu
settings_toggle
limitWarning

@nicolas-raoul
Copy link
Member

Would you mind fixing the conflict? Thanks!

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working great and code looks good, thanks!

@nicolas-raoul nicolas-raoul merged commit 634bc3e into commons-app:main Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom picker: Add a button to delete the current folder
2 participants