Skip to content

Commit

Permalink
Update GPXUtilities.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sonora authored Sep 1, 2024
1 parent cd39225 commit 25dea05
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions OsmAnd-java/src/main/java/net/osmand/gpx/GPXUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 25dea05

Please sign in to comment.