forked from upstream-mirrors/OpenTracks
Cleanup using AndroidStudio analyze.
This commit is contained in:
@@ -45,7 +45,7 @@ import de.dennisguse.opentracks.util.StringUtils;
|
||||
|
||||
/**
|
||||
* Convert {@link Track} incl. {@link Marker} and {@link TrackPoint} to KML version 2.3.
|
||||
* https://docs.opengeospatial.org/is/12-007r2/12-007r2.html
|
||||
* <a href="https://docs.opengeospatial.org/is/12-007r2/12-007r2.html">...</a>
|
||||
*
|
||||
* @author Sandor Dornbush
|
||||
* @author Rodrigo Damazio
|
||||
|
||||
@@ -41,8 +41,8 @@ import de.dennisguse.opentracks.util.StringUtils;
|
||||
/**
|
||||
* Imports a GPX file.
|
||||
* Uses:
|
||||
* * https://www8.garmin.com/xmlschemas/TrackPointExtensionv2.xsd
|
||||
* * https://www8.garmin.com/xmlschemas/PowerExtensionv1.xsd
|
||||
* * <a href="https://www8.garmin.com/xmlschemas/TrackPointExtensionv2.xsd">...</a>
|
||||
* * <a href="https://www8.garmin.com/xmlschemas/PowerExtensionv1.xsd">...</a>
|
||||
* <p>
|
||||
* {@link de.dennisguse.opentracks.io.file.exporter.GPXTrackExporter} does not export information if a segment was started automatic or manually.
|
||||
* Therefore, all segments starts are marked as SEGMENT_START_AUTOMATIC.
|
||||
|
||||
@@ -135,7 +135,7 @@ public class TrackImporter {
|
||||
track.setUuid(UUID.randomUUID());
|
||||
}
|
||||
|
||||
Collections.sort(trackPoints, (o1, o2) -> {
|
||||
trackPoints.sort((o1, o2) -> {
|
||||
if (o1.getTime().isBefore(o2.getTime())) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user