forked from upstream-mirrors/OpenTracks
Bugfix: TrackStatistics' total time was not restored correctly, when having pause/stop and then resume.
This commit is contained in:
@@ -336,9 +336,8 @@ public class TrackRecordingService extends Service implements HandlerServer.Hand
|
||||
|
||||
// Update database
|
||||
Track track = contentProviderUtils.getTrack(getRecordingTrackId());
|
||||
if (track != null) {
|
||||
insertTrackPoint(track, handlerServer.createSegmentStartManual());
|
||||
}
|
||||
trackStatisticsUpdater = new TrackStatisticsUpdater(track.getTrackStatistics());
|
||||
insertTrackPoint(track, handlerServer.createSegmentStartManual());
|
||||
|
||||
startRecording();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user