Hide gpx options for new gpx routing
This commit is contained in:
parent
8710881eea
commit
d518c29d0f
3 changed files with 5 additions and 5 deletions
|
@ -62,8 +62,7 @@ public class RouteExporter {
|
|||
}
|
||||
bundle.putBundleList("types", "type", typeList);
|
||||
|
||||
GPXFile gpx = new GPXFile("OsmAnd");
|
||||
gpx.author = OSMAND_ROUTER_V2;
|
||||
GPXFile gpx = new GPXFile(OSMAND_ROUTER_V2);
|
||||
Track track = new Track();
|
||||
track.name = name;
|
||||
gpx.tracks.add(track);
|
||||
|
|
|
@ -462,10 +462,11 @@ public class RoutingOptionsHelper {
|
|||
}
|
||||
|
||||
public List<LocalRoutingParameter> getGpxRouterParameters(ApplicationMode am) {
|
||||
RoutingHelper routingHelper = app.getRoutingHelper();
|
||||
List<LocalRoutingParameter> list = new ArrayList<LocalRoutingParameter>();
|
||||
RouteProvider.GPXRouteParamsBuilder rparams = app.getRoutingHelper().getCurrentGPXRoute();
|
||||
RouteProvider.GPXRouteParamsBuilder rparams = routingHelper.getCurrentGPXRoute();
|
||||
boolean osmandRouter = am.getRouteService() == RouteProvider.RouteService.OSMAND;
|
||||
if (rparams != null && osmandRouter) {
|
||||
if (rparams != null && !routingHelper.isCurrentGPXRouteV2() && osmandRouter) {
|
||||
GPXUtilities.GPXFile fl = rparams.getFile();
|
||||
if (fl.hasRtePt()) {
|
||||
list.add(new OtherLocalRoutingParameter(R.string.use_points_as_intermediates,
|
||||
|
|
|
@ -251,7 +251,7 @@ public class RouteProvider {
|
|||
}
|
||||
if (OSMAND_ROUTER_V2.equals(file.author)) {
|
||||
route = parseOsmAndGPXRoute(points, file);
|
||||
addMissingTurns = reverse;
|
||||
addMissingTurns = false;
|
||||
} else if (file.isCloudmadeRouteFile() || OSMAND_ROUTER.equals(file.author)) {
|
||||
directions = parseOsmAndGPXRoute(points, file, OSMAND_ROUTER.equals(file.author), builder.leftSide, 10);
|
||||
if (OSMAND_ROUTER.equals(file.author)) {
|
||||
|
|
Loading…
Reference in a new issue