Submit my changes before merging.

This commit is contained in:
Sandor Dornbush
2010-09-23 11:02:45 -07:00
parent d05c394c68
commit 19a770445e
7 changed files with 101 additions and 26 deletions
@@ -1002,6 +1002,7 @@ public class MyTracksMap extends MapActivity
int bufferSize = 1024;
int points = 0;
long tailLocationId = selectedTrack.getStopId() - 10;
Location location;
while (lastSeenLocationId < (selectedTrack.getStopId() + 10)) {
cursor = providerUtils.getLocationsCursor(
selectedTrack.getId(), lastSeenLocationId + 1, bufferSize, false);
@@ -1010,7 +1011,7 @@ public class MyTracksMap extends MapActivity
TrackPointsColumns._ID);
do {
points++;
Location location = providerUtils.createLocation(cursor);
location = providerUtils.createLocation(cursor);
lastSeenLocationId = cursor.getLong(idColumnIdx);
// Include a point if it fits one of the following criteria:
// - Has the mod for the sampling frequency.
@@ -1021,7 +1022,7 @@ public class MyTracksMap extends MapActivity
points % samplingFrequency == 0 ||
points == 0 ||
lastSeenLocationId > tailLocationId) {
mapOverlay.addLocation(location);
mapOverlay.addLocation(new Location(location));
}
} while (cursor.moveToNext());
} else {