Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
Rajas55 wants to merge 3 commits into commons-app:main
base: main
Choose a base branch
Loading
from Rajas55:fix/explore-map-captions

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.

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

@nicolas-raoul nicolas-raoul Apr 29, 2025

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!

Copy link
Member

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

RitikaPahwa4444 reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@nicolas-raoul nicolas-raoul nicolas-raoul requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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

AltStyle によって変換されたページ (->オリジナル) /