reformated code
This commit is contained in:
parent
defb4d4ab2
commit
b475a6314f
1 changed files with 39 additions and 34 deletions
|
@ -35,7 +35,6 @@ public class RouteStepsPlugin extends OsmandPlugin {
|
|||
private List<Boolean> pointsStatus;
|
||||
|
||||
|
||||
|
||||
public RouteStepsPlugin(OsmandApplication app) {
|
||||
this.app = app;
|
||||
this.file = new File("/storage/emulated/0/osmand/tracks/", "504.gpx");
|
||||
|
@ -46,9 +45,13 @@ public class RouteStepsPlugin extends OsmandPlugin {
|
|||
getAllPointsStatus();
|
||||
}
|
||||
|
||||
public void setGpxFile(GPXUtilities.GPXFile file){ this.gpx = file;}
|
||||
public void setGpxFile(GPXUtilities.GPXFile file) {
|
||||
this.gpx = file;
|
||||
}
|
||||
|
||||
public void saveGPXFile(){ GPXUtilities.writeGpxFile(file,gpx,app); }
|
||||
public void saveGPXFile() {
|
||||
GPXUtilities.writeGpxFile(file, gpx, app);
|
||||
}
|
||||
|
||||
public void setCurrentPoint(GPXUtilities.WptPt point) {
|
||||
currentPoint = point;
|
||||
|
@ -92,7 +95,9 @@ public class RouteStepsPlugin extends OsmandPlugin {
|
|||
//registerWidget(activity);
|
||||
}
|
||||
|
||||
public List<GPXUtilities.WptPt> getPoints() {return currentRoute.points;}
|
||||
public List<GPXUtilities.WptPt> getPoints() {
|
||||
return currentRoute.points;
|
||||
}
|
||||
|
||||
public boolean getPointStatus(int numberOfPoint) {
|
||||
Map<String, String> map = gpx.getExtensionsToRead();
|
||||
|
|
Loading…
Reference in a new issue