Merge pull request #400 from afischerdev/update-osmand

trackdir and brouter.redirect changes
This commit is contained in:
afischerdev 2022-02-11 15:59:14 +01:00 committed by GitHub
commit 182426a4a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,7 +265,7 @@ public class BRouterView extends View {
}
}
if (tracksDir == null) {
tracksDir = new File(basedir, "router"); // fallback
tracksDir = new File(basedir, "brouter"); // fallback
}
String[] fileNames = profileDir.list();
@ -580,7 +580,7 @@ public class BRouterView extends View {
// for profile remote, use ref-track logic same as service interface
rc.rawTrackPath = rawTrackPath;
cr = new RoutingEngine(tracksDir + "/brouter", null, segmentDir, wpList, rc);
cr = new RoutingEngine(tracksDir.getAbsolutePath()+"/brouter", null, segmentDir, wpList, rc);
cr.start();
invalidate();