Bugfix for empty total time in trip statistics and missing first location in exported files

This commit is contained in:
Steffen Horlacher
2010-06-06 23:31:03 +02:00
parent 88b2b85f2a
commit 6fd4294391
2 changed files with 4 additions and 3 deletions
@@ -860,13 +860,14 @@ public class MyTracksProviderUtilsImpl implements MyTracksProviderUtils {
return;
}
while (cursor.moveToNext()) {
do {
Location location = createLocation(cursor);
if (location == null) {
continue;
}
buffer.add(location, cursor.getLong(idColumnIdx));
}
} while (cursor.moveToNext());
if (buffer.getLocationsLoaded() == 0) {
Log.w(MyTracksProvider.TAG, "No locations read.");
buffer.resetAt(startingPoint + buffer.getSize());
@@ -159,7 +159,7 @@ public class TripStatistics implements Parcelable {
* stopped
*/
public long getStopTime() {
return startTime;
return stopTime;
}
/**