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:
@@ -221,7 +221,7 @@ public class ShareContentProvider extends CustomContentProvider {
|
||||
}
|
||||
}
|
||||
|
||||
final TrackExporter trackExporter = getTrackFileFormat(uri).newTrackExporter(getContext());
|
||||
final TrackExporter trackExporter = getTrackFileFormat(uri).createTrackExporter(getContext());
|
||||
|
||||
PipeDataWriter<String> pipeDataWriter = (output, uri1, mimeType, opts, args) -> {
|
||||
try (FileOutputStream fileOutputStream = new FileOutputStream(output.getFileDescriptor())) {
|
||||
|
||||
Reference in New Issue
Block a user