Hide the first stats waypoint.

This commit is contained in:
Sandor Dornbush
2011-02-22 16:52:22 -08:00
parent 10cd26af5e
commit e829f1fc1b
2 changed files with 12 additions and 2 deletions
@@ -201,7 +201,10 @@ public class MyTracksMap extends MapActivity
MyTracksConstants.MAX_DISPLAYED_WAYPOINTS_POINTS);
if (cursor != null && cursor.moveToFirst()) {
do {
mapOverlay.addWaypoint(providerUtils.createWaypoint(cursor));
Waypoint waypoint = providerUtils.createWaypoint(cursor);
if (MyTracksUtils.isValidLocation(waypoint.getLocation())) {
mapOverlay.addWaypoint(waypoint);
}
} while (cursor.moveToNext());
}
} catch (RuntimeException e) {