added updating time when you start a route but are already following another one

This commit is contained in:
Sem van der Hoeven
2021-01-06 16:20:03 +01:00
parent c412f36e6c
commit fb2f7e8a66
2 changed files with 15 additions and 2 deletions

View File

@@ -46,6 +46,9 @@ public enum RouteHandler {
}
public void followRoute(Route route) {
if (isFollowingRoute) {
StaticData.INSTANCE.addTimeWalked(System.currentTimeMillis()-startedTime);
}
this.currentRoute = route;
setFollowingRoute(true);
startedTime = System.currentTimeMillis();