Skip to content

Fix: Show captions instead of filenames in Explore > Map (Fixes #6294) #6299

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Rajas55
Copy link

@Rajas55 Rajas55 commented Apr 28, 2025

Description (required)
Fixes #6294

What changes did you make and why?

Updated the Explore > Map view to display the caption (in the user's language) instead of the filename on green pins.

If a caption is unavailable, the app falls back to showing the filename.

Improves usability and localization, matching the behavior in Explore > Featured.

Tests performed (required)

Tested ProdDebug build variant on Medium Emulator (API 36) and Pixel 7 Emulator (API 34).

Verified:

Captions appear correctly on green pins when available.

Filenames are shown when captions are missing.

Clicking pins opens the bottom sheet without crashes.

Behavior verified even when some media items lack captions.

Screenshots (for UI changes only)

No UI layout changes.

Only the text label of the green pins was updated based on available captions.

@Rajas55
Copy link
Author

Rajas55 commented Apr 29, 2025

Hi @nicolas-raoul,
All requested changes have been made. Please let me know if anything else is needed. 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.

Before submitting, please review each changed line and ask yourself whether it is really needed to fix that particular issue? If not, revert it. Thanks!

public LatLng latestSearchLocation; // Last search center
public LatLng currentLocation; // User’s current location
public double latestSearchRadius = 0; // Last search radius
public double currentLocationSearchRadius = 0; // Radius when searching around current location
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind including only changes that are relevant to the issue at hand? Thanks!

@nicolas-raoul
Copy link
Member

Hi Rajas,
Did you get a chance to check my comments? Thanks! :-)

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.

Explore Map: If available, show localized caption rather than filename
2 participants