Address Rodrigo's comments.

This commit is contained in:
Sandor Dornbush
2010-08-23 09:05:55 -07:00
parent 9ba93ff8d2
commit 71a36d1b25
4 changed files with 8 additions and 4 deletions
@@ -961,6 +961,11 @@ public class MyTracksMap extends MapActivity
// 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) {
long totalLocations = track.getStopId() - track.getStartId();
@@ -969,7 +974,6 @@ public class MyTracksMap extends MapActivity
(int) (1 +
totalLocations / MyTracksConstants.TARGET_DISPLAYED_TRACK_POINTS);
Log.i(MyTracksConstants.TAG, "Sampling locations: " + samplingFrequency);
}
private void readAllNewTrackPoints() {