forked from upstream-mirrors/OpenTracks
GPX exporter: only export trkseq if it actually contains data.
Fixes #1291.
This commit is contained in:
@@ -146,13 +146,10 @@ public class GPXTrackExporter implements TrackExporter {
|
|||||||
|
|
||||||
switch (trackPoint.getType()) {
|
switch (trackPoint.getType()) {
|
||||||
case SEGMENT_START_MANUAL:
|
case SEGMENT_START_MANUAL:
|
||||||
if (wroteSegment) writeCloseSegment();
|
|
||||||
writeOpenSegment();
|
|
||||||
wroteSegment = true;
|
|
||||||
Log.i(TAG, "Exporting " + TrackPoint.Type.SEGMENT_START_MANUAL.name() + " is not supported.");
|
Log.i(TAG, "Exporting " + TrackPoint.Type.SEGMENT_START_MANUAL.name() + " is not supported.");
|
||||||
break;
|
break;
|
||||||
case SEGMENT_END_MANUAL:
|
case SEGMENT_END_MANUAL:
|
||||||
writeCloseSegment();
|
if (wroteSegment) writeCloseSegment();
|
||||||
wroteSegment = false;
|
wroteSegment = false;
|
||||||
Log.i(TAG, "Exporting " + TrackPoint.Type.SEGMENT_END_MANUAL.name() + " is not supported.");
|
Log.i(TAG, "Exporting " + TrackPoint.Type.SEGMENT_END_MANUAL.name() + " is not supported.");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user