mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-06 19:43:06 +02:00
Bugfix: idle time should start also if the first trackpoint with a location is stored.
Identified in #1898.
This commit is contained in:
@@ -197,6 +197,9 @@ public class TrackRecordingManager implements SharedPreferences.OnSharedPreferen
|
|||||||
|
|
||||||
if (trackPoint.hasLocation() && lastStoredTrackPointWithLocation == null) {
|
if (trackPoint.hasLocation() && lastStoredTrackPointWithLocation == null) {
|
||||||
insertTrackPoint(trackPoint, true);
|
insertTrackPoint(trackPoint, true);
|
||||||
|
|
||||||
|
handler.removeCallbacks(ON_IDLE);
|
||||||
|
handler.postDelayed(ON_IDLE, idleDuration.toMillis());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user