Skip to content

Commit

Permalink
Rename OBF_POINTS_GROUPS_EMPTY_NAME_STUB
Browse files Browse the repository at this point in the history
  • Loading branch information
RZR-UA committed Dec 10, 2024
1 parent 35ce02c commit ffd7b5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ object GpxUtilities {
const val OBF_POINTS_GROUPS_ICONS = "points_groups_icons"
const val OBF_POINTS_GROUPS_COLORS = "points_groups_colors"
const val OBF_POINTS_GROUPS_BACKGROUNDS = "points_groups_backgrounds"
const val OBF_POINTS_GROUPS_EMPTY_NAME_VALUE = "." // stub to store empty points_groups_names
const val OBF_POINTS_GROUPS_EMPTY_NAME_STUB = "." // stub to store empty points_groups_names
const val OBF_POINTS_GROUPS_CATEGORY = "points_groups_category" // optional category of OBF-GPX point

fun parsePointsGroupAttributes(parser: XmlPullParser): PointsGroup {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import static net.osmand.shared.gpx.GpxUtilities.PointsGroup.OBF_POINTS_GROUPS_BACKGROUNDS;
import static net.osmand.shared.gpx.GpxUtilities.PointsGroup.OBF_POINTS_GROUPS_COLORS;
import static net.osmand.shared.gpx.GpxUtilities.PointsGroup.OBF_POINTS_GROUPS_DELIMITER;
import static net.osmand.shared.gpx.GpxUtilities.PointsGroup.OBF_POINTS_GROUPS_EMPTY_NAME_VALUE;
import static net.osmand.shared.gpx.GpxUtilities.PointsGroup.OBF_POINTS_GROUPS_EMPTY_NAME_STUB;
import static net.osmand.shared.gpx.GpxUtilities.PointsGroup.OBF_POINTS_GROUPS_ICONS;
import static net.osmand.shared.gpx.GpxUtilities.PointsGroup.OBF_POINTS_GROUPS_NAMES;
import static net.osmand.shared.gpx.GpxUtilities.PointsGroup.OBF_POINTS_GROUPS_PREFIX;
Expand Down Expand Up @@ -1310,7 +1310,7 @@ private void reconstructPointsGroups(GpxFile gpxFile, List<String> pgNames, List
String icon = pgIcons.get(i);
String background = pgBackgrounds.get(i);
int color = KAlgorithms.INSTANCE.parseColor(pgColors.get(i));
if (name.isEmpty() || OBF_POINTS_GROUPS_EMPTY_NAME_VALUE.equals(name)) {
if (name.isEmpty() || OBF_POINTS_GROUPS_EMPTY_NAME_STUB.equals(name)) {
name = GpxFile.DEFAULT_WPT_GROUP_NAME; // follow current default
}
GpxUtilities.PointsGroup pg = new GpxUtilities.PointsGroup(name, icon, background, color);
Expand Down

0 comments on commit ffd7b5d

Please sign in to comment.