Skip to content

Implement single selection logic in custom image picker #6341

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

Merged
merged 2 commits into from
Jun 7, 2025

Conversation

sonalyadav1
Copy link
Contributor

Description (required)

This PR introduces single-selection functionality in the custom image picker. Previously, users could select multiple items. With this update, selecting a new image automatically deselects any previously selected image, ensuring only one item is selected at a time.

Fixes #5674

What changes did you make and why?
-Implemented logic to allow only one item to be selected at a time in the custom picker.
-Deselects the previously selected item when a new item is selected.
-Updated UI state and selection indicators accordingly.

Tests performed (required)

Tested {build variant, ProdDebug} on {VIVO V25} with API level {34}.

Screenshots (for UI changes only)

Screenrecording_20250607_124135.mp4

Copy link

github-actions bot commented Jun 7, 2025

✅ Generated APK variants!

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 fine, and code looks great. Thanks! :-)

@nicolas-raoul nicolas-raoul merged commit f45f26e into commons-app:main Jun 7, 2025
1 check passed
Nishthajain7 pushed a commit to Nishthajain7/apps-android-commons that referenced this pull request Jun 8, 2025
…6341)

* build failure cause

* Fix image selector logic in custom picker
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.

Nearby -> Custom picker: Only allow 1 picture to be selected
2 participants