diff --git a/OsmAnd-java/src/main/java/net/osmand/gpx/GPXUtilities.java b/OsmAnd-java/src/main/java/net/osmand/gpx/GPXUtilities.java index 3c402293c06..2000d44c84d 100644 --- a/OsmAnd-java/src/main/java/net/osmand/gpx/GPXUtilities.java +++ b/OsmAnd-java/src/main/java/net/osmand/gpx/GPXUtilities.java @@ -1285,18 +1285,18 @@ private static void writeWpt(XmlSerializer serializer, WptPt p, IProgress progre extensions.remove(PROFILE_TYPE_EXTENSION); } } -// if (p.category != null && file.pointsGroups.get(p.category) != null) { + if (p.category != null && file.pointsGroups.get(p.category) != null) { PointsGroup pointsGroup = file.pointsGroups.get(p.category); -// if (COLOR_NAME_EXTENSION.equals(serializer.getName()) && p.getColor() == pointsGroup.color) { + if (.p.getColor() == pointsGroup.color) { extensions.remove(COLOR_NAME_EXTENSION); -// } -// if (ICON_NAME_EXTENSION.equals(serializer.getName()) && p.getIconName().equals(pointsGroup.iconName)) { + } + if (p.getIconName().equals(pointsGroup.iconName)) { extensions.remove(ICON_NAME_EXTENSION); -// } -// if (BACKGROUND_TYPE_EXTENSION.equals(serializer.getName()) && p.getBackgroundType().equals(pointsGroup.backgroundType)) { + } + if (p.getBackgroundType().equals(pointsGroup.backgroundType)) { extensions.remove(BACKGROUND_TYPE_EXTENSION); -// } -// } + } + } assignExtensionWriter(p, extensions); writeExtensions(serializer, null, p, null); if (progress != null) {