Making the boat sparkline initialise after the race screen is shown.

#story[952]
This commit is contained in:
Kusal Ekanayake
2017-05-21 14:56:05 +12:00
parent 48d58ea660
commit 8e147bd1bd
3 changed files with 11 additions and 4 deletions
+3 -3
View File
@@ -107,9 +107,9 @@ public class Yacht {
}
public void setLegNumber(Integer legNumber) {
if (legNumber != this.legNumber && colour != null && position != "-") {
RaceViewController.updateYachtPositionSparkline(this, legNumber);
}
// if (colour != null && position != "-" && legNumber != this.legNumber&& RaceViewController.sparkLineStatus(sourceID)) {
// RaceViewController.updateYachtPositionSparkline(this, legNumber);
// }
this.legNumber = legNumber;
}