forked from upstream-mirrors/OpenTracks
Address Rodrigo's comments.
This commit is contained in:
@@ -961,6 +961,11 @@ public class MyTracksMap extends MapActivity
|
|||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the sampling frequency from the total number of points in the track.
|
||||||
|
*
|
||||||
|
* @param track The track to read the total number of points from.
|
||||||
|
*/
|
||||||
private void setSamplingFrequency(Track track) {
|
private void setSamplingFrequency(Track track) {
|
||||||
long totalLocations = track.getStopId() - track.getStartId();
|
long totalLocations = track.getStopId() - track.getStartId();
|
||||||
|
|
||||||
@@ -969,7 +974,6 @@ public class MyTracksMap extends MapActivity
|
|||||||
(int) (1 +
|
(int) (1 +
|
||||||
totalLocations / MyTracksConstants.TARGET_DISPLAYED_TRACK_POINTS);
|
totalLocations / MyTracksConstants.TARGET_DISPLAYED_TRACK_POINTS);
|
||||||
Log.i(MyTracksConstants.TAG, "Sampling locations: " + samplingFrequency);
|
Log.i(MyTracksConstants.TAG, "Sampling locations: " + samplingFrequency);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void readAllNewTrackPoints() {
|
private void readAllNewTrackPoints() {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
|
<classpathentry combineaccessrules="false" kind="src" path="/MyTracks"/>
|
||||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="gen"/>
|
<classpathentry kind="src" path="gen"/>
|
||||||
<classpathentry kind="lib" path="libs/easymock.jar"/>
|
<classpathentry kind="lib" path="libs/easymock.jar"/>
|
||||||
<classpathentry combineaccessrules="false" kind="src" path="/MyTracks-opensource"/>
|
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<name>MyTracksTest</name>
|
<name>MyTracksTest</name>
|
||||||
<comment></comment>
|
<comment></comment>
|
||||||
<projects>
|
<projects>
|
||||||
<project>MyTracks-opensource</project>
|
<project>MyTracks</project>
|
||||||
</projects>
|
</projects>
|
||||||
<buildSpec>
|
<buildSpec>
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Tests for the GPX track exporter.
|
* Tests for the GPX track exporter.
|
||||||
*
|
*
|
||||||
* @author Rodrigo Damazio
|
* @author Sandor Dornbush
|
||||||
*/
|
*/
|
||||||
public class TcxTrackWriterTest extends TrackFormatWriterTest {
|
public class TcxTrackWriterTest extends TrackFormatWriterTest {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user