Bugfix: crash on recording start due to show latitude/longitude option.

Fixes #613.
This commit is contained in:
Dennis Guse
2021-02-27 18:37:42 +01:00
parent eac7efba64
commit 4040e3f45b
3 changed files with 26 additions and 26 deletions
@@ -174,7 +174,23 @@ public class TrackPoint {
}
public boolean hasLocation() {
return latitude != null || longitude != null;
return latitude != null && longitude != null;
}
public double getLatitude() {
return latitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
@NonNull
@@ -222,22 +238,6 @@ public class TrackPoint {
this.elevationLoss = elevationLoss;
}
public double getLatitude() {
return latitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
public Instant getTime() {
return time;
}