following route stuff

This commit is contained in:
Sem van der Hoeven
2021-01-06 10:41:56 +01:00
parent 1877a693d0
commit abc58d3606

View File

@@ -18,6 +18,10 @@ public enum StaticData {
routeName = route.getName();
setFollowingRoute(true);
}
public boolean isFollowingRoute(Route route) {
return isFollowingRoute && route.getName().equals(routeName);
}
public void setFollowingRoute(boolean followingRoute) {
isFollowingRoute = followingRoute;
}