Skip to content

Commit

Permalink
Export multiple tags as multiple <keyword> elements instead of comma …
Browse files Browse the repository at this point in the history
…separated

list. Seems to be more in line with GPX specs.
  • Loading branch information
Hans-Joachim Zimmer authored and Hans-Joachim Zimmer committed Jun 22, 2019
1 parent 9d12bd2 commit 183eb9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/net/osmtracker/gpx/ExportTrackTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ private void writeGpxFile(String tags, String track_description, Cursor cTrackPo

if (tags != null && !tags.equals("")) {
writer.write("<metadata>\n");
writer.write("<keywords>" + tags + "</keywords>\n");
for (String tag: tags.split(",")) {
writer.write("<keywords>" + tag + "</keywords>\n");
}
writer.write("</metadata>\n");
}

Expand Down

0 comments on commit 183eb9c

Please sign in to comment.