Bugfix: idle time should start also if the first trackpoint with a location is stored.

Identified in #1898.
This commit is contained in:
Dennis Guse
2024-04-27 00:01:56 +02:00
parent e590e4e07e
commit 455c2fcf75
@@ -197,6 +197,9 @@ public class TrackRecordingManager implements SharedPreferences.OnSharedPreferen
if (trackPoint.hasLocation() && lastStoredTrackPointWithLocation == null) {
insertTrackPoint(trackPoint, true);
handler.removeCallbacks(ON_IDLE);
handler.postDelayed(ON_IDLE, idleDuration.toMillis());
return true;
}