added updating time when you start a route but are already following another one
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user