Merge branch 'RecyclerView' into follow-route
# Conflicts: # app/src/main/assets/locations.json # app/src/main/assets/routes.json # app/src/main/java/com/a1/nextlocation/fragments/LocationDetailFragment.java # app/src/main/java/com/a1/nextlocation/fragments/RouteDetailFragment.java # app/src/main/res/values/strings.xml
This commit is contained in:
@@ -15,21 +15,14 @@ public class Route implements Parcelable {
|
||||
|
||||
@NonNull
|
||||
private String name;
|
||||
|
||||
|
||||
private String description;
|
||||
private List<Location> locations;
|
||||
|
||||
|
||||
private float totalDistance;
|
||||
|
||||
|
||||
private int totalTime;
|
||||
|
||||
public Route(@NotNull String name) {
|
||||
|
||||
this.name = name;
|
||||
this.locations = new ArrayList<>();
|
||||
|
||||
}
|
||||
|
||||
protected Route(Parcel in) {
|
||||
@@ -103,4 +96,12 @@ public class Route implements Parcelable {
|
||||
parcel.writeFloat(totalDistance);
|
||||
parcel.writeInt(totalTime);
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user