mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
Bug fix, at the end of a track, only update the time if not paused
This commit is contained in:
@@ -768,10 +768,10 @@ public class TrackRecordingService extends Service {
|
||||
// If not paused, add the last location
|
||||
if (!paused) {
|
||||
insertLocation(track, lastLocation, getLastValidTrackPointInCurrentSegment(trackId));
|
||||
}
|
||||
|
||||
// Update the recording track time
|
||||
updateRecordingTrack(track, myTracksProviderUtils.getLastTrackPointId(trackId), false);
|
||||
|
||||
// Update the recording track time
|
||||
updateRecordingTrack(track, myTracksProviderUtils.getLastTrackPointId(trackId), false);
|
||||
}
|
||||
|
||||
if (track.getCategory().equals(PreferencesUtils.DEFAULT_ACTIVITY_DEFAULT)) {
|
||||
int activityRecognitionType = PreferencesUtils.getInt(this,
|
||||
|
||||
Reference in New Issue
Block a user