diff --git a/OsmAnd/src/net/osmand/plus/activities/AvailableGPXFragment.java b/OsmAnd/src/net/osmand/plus/activities/AvailableGPXFragment.java index ad196e8684..57011a6e2d 100644 --- a/OsmAnd/src/net/osmand/plus/activities/AvailableGPXFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/AvailableGPXFragment.java @@ -1035,7 +1035,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment { } private String formatName(String name) { - int ext = name.indexOf('.'); + int ext = name.lastIndexOf('.'); if (ext != -1) { name = name.substring(0, ext); }