This commit is contained in:
Nicolas Raoul 2025-04-21 10:59:54 +09:00 committed by GitHub
parent 1b67b8643b
commit b8b9359d4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -726,8 +726,8 @@ public class ExploreMapFragment extends CommonsDaggerSupportFragment
title = title.replaceAll("(?i)\\.(jpg|jpeg|png|svg)$", "");
title = title.replace("_", " ");
//Truncate if too long because it doesn't fit the screen
if (title.length() >43) {
title = title.substring(0, 40) + "...";
if (title.length() > 43) {
title = title.substring(0, 40) + "";
}
OverlayItem item = new OverlayItem(title, authorUser, point);