Bugfix: TrackStatistics' total time was not restored correctly, when having pause/stop and then resume.

This commit is contained in:
Dennis Guse
2021-07-16 00:03:31 +02:00
parent 3bd00c906a
commit 86a0054c24
4 changed files with 69 additions and 101 deletions
@@ -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();
}