-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Code Enhancement (Explore Map) #6293
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
Conversation
@@ -717,8 +717,17 @@ private void addMarkerToMap(BaseMarker nearbyBaseMarker) { | |||
authorUser = Html.fromHtml(authorUser, Html.FROM_HTML_MODE_LEGACY).toString(); | |||
} | |||
|
|||
OverlayItem item = new OverlayItem(nearbyBaseMarker.getPlace().name, | |||
authorUser, point); | |||
String title = nearbyBaseMarker.getPlace().name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does getPlace() have something like .caption or .label? That would be better, though that can be split to a different issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getLabel() is causing some issue and there is nothing like .caption
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What issue exactly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The app is getting crashed
} | ||
title = title.replaceAll("(?i)\\.(jpg|jpeg|png|svg)$", ""); | ||
title = title.replace("_", " "); | ||
if (title.length() >43) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind adding a comment explaining why truncating is necessary? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are truncating because the title doesn't fits in the box
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please add this info as a code comment //
so that future readers will know why. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this works
✅ Generated APK variants! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Exclude past locations (P585) from Nearby query * "Send" button text should be white * Custom picker: logic * Revert back changes * Enhancement :- Explore Map information * Enhancement :- Explore Map information * Style --------- Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
Description (required)
Fixes #6266
What changes did you make and why?
Tests performed (required)
Tested {build variant, e.g. ProdDebug} on {name of device or emulator} with API level {API level}.

Tested {build variant :-betaDebug} on {OnePlus Nord CE4 Lite} with API level {35}.
Screenshots (for UI changes only)