forked from upstream-mirrors/OpenTracks
GPX: only export TrackPoints with lat/lng. (#591)
GPX: only export TrackPoints with lat/lng. Thus, segmentation (manual/automatic) cannot be restored on import. This also affects the TrackStatistics.
This commit is contained in:
@@ -35,7 +35,7 @@ public class ExportUtils {
|
||||
}
|
||||
|
||||
public static boolean exportTrack(Context context, TrackFileFormat trackFileFormat, DocumentFile directory, Track track) {
|
||||
TrackExporter trackExporter = trackFileFormat.newTrackExporter(context);
|
||||
TrackExporter trackExporter = trackFileFormat.createTrackExporter(context);
|
||||
|
||||
Uri exportDocumentFileUri = getExportDocumentFileUri(context, track.getId(), trackFileFormat, directory);
|
||||
if (exportDocumentFileUri == null) {
|
||||
|
||||
Reference in New Issue
Block a user