added visited locations in route

This commit is contained in:
Sem van der Hoeven
2021-01-14 10:48:52 +01:00
parent 018de5688e
commit f7691d62fe
3 changed files with 18 additions and 1 deletions

View File

@@ -112,4 +112,13 @@ public class Route implements Parcelable {
public void setDescription(String description) {
this.description = description;
}
public void setLocationVisited(Location location) {
for (Location l : this.locations) {
if (l.getName().equals(location.getName())) {
l.setVisited(true);
break;
}
}
}
}