Refactor
This commit is contained in:
parent
c819c7f8de
commit
8681b04b0c
4 changed files with 12 additions and 12 deletions
|
@ -781,16 +781,6 @@ public class GPXUtilities {
|
|||
private Track generalTrack;
|
||||
private TrkSegment generalSegment;
|
||||
|
||||
private boolean synced = false;
|
||||
|
||||
public void setSynced(boolean synced) {
|
||||
this.synced = synced;
|
||||
}
|
||||
|
||||
public boolean isSynced() {
|
||||
return synced;
|
||||
}
|
||||
|
||||
public List<WptPt> getPoints() {
|
||||
return Collections.unmodifiableList(points);
|
||||
}
|
||||
|
|
|
@ -556,6 +556,16 @@ public class GpxSelectionHelper {
|
|||
|
||||
private List<GpxDisplayGroup> displayGroups;
|
||||
|
||||
private boolean synced;
|
||||
|
||||
public void setSynced(boolean synced) {
|
||||
this.synced = synced;
|
||||
}
|
||||
|
||||
public boolean isSynced() {
|
||||
return synced;
|
||||
}
|
||||
|
||||
public void setGpxFile(GPXFile gpxFile) {
|
||||
this.gpxFile = gpxFile;
|
||||
if (gpxFile.tracks.size() > 0) {
|
||||
|
|
|
@ -549,7 +549,7 @@ public class MapMarkersHelper {
|
|||
group.setColor(pt.getColor(defColor));
|
||||
addNewMarkerIfNeeded(group, dbMarkers, new LatLon(pt.lat, pt.lon), pt.name, enabled, null, pt);
|
||||
}
|
||||
gpx.setSynced(true);
|
||||
selectedGpxFile.setSynced(true);
|
||||
|
||||
removeOldMarkersIfNeeded(dbMarkers);
|
||||
}
|
||||
|
|
|
@ -526,7 +526,7 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex
|
|||
}
|
||||
|
||||
private boolean isSynced(SelectedGpxFile g) {
|
||||
return g.getGpxFile().isSynced();
|
||||
return g.isSynced();
|
||||
}
|
||||
|
||||
private boolean calculateBelongs(int ex, int ey, int objx, int objy, int radius) {
|
||||
|
|
Loading…
Reference in a new issue