forked from upstream-mirrors/OpenTracks
Bugfix: when stopping a recording, immediately stop the idle detection timer.
Fixes #2386.
This commit is contained in:
@@ -120,6 +120,7 @@ public class TrackRecordingManager implements SharedPreferences.OnSharedPreferen
|
||||
}
|
||||
|
||||
synchronized void endCurrentTrack() {
|
||||
handler.removeCallbacks(ON_IDLE);
|
||||
TrackPoint segmentEnd = trackPointCreator.createSegmentEnd();
|
||||
insertTrackPoint(segmentEnd, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user