Merge pull request #703 from afischerdev/new-apk

Add a check for the nogo list
This commit is contained in:
afischerdev 2024-05-29 17:48:59 +02:00 committed by GitHub
commit be0aa77ee8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 5 deletions

View file

@ -224,7 +224,9 @@ public class BRouterView extends View {
// add a "last timeout" dummy profile
File lastTimeoutFile = new File(modesDir + "/timeoutdata.txt");
long lastTimeoutTime = lastTimeoutFile.lastModified();
if (lastTimeoutTime > 0 && System.currentTimeMillis() - lastTimeoutTime < 1800000) {
if (lastTimeoutTime > 0 &&
lastTimeoutFile.length() > 0 &&
System.currentTimeMillis() - lastTimeoutTime < 1800000) {
BufferedReader br = new BufferedReader(new FileReader(lastTimeoutFile));
String repeatProfile = br.readLine();
br.close();

View file

@ -214,6 +214,9 @@ public class BRouterWorker {
}
private void writeWPList(BufferedWriter bw, List<OsmNodeNamed> wps) throws Exception {
if (wps == null) {
bw.write("0\n");
} else {
bw.write(wps.size() + "\n");
for (OsmNodeNamed wp : wps) {
bw.write(wp.toString());
@ -221,4 +224,5 @@ public class BRouterWorker {
}
}
}
}

View file

@ -2,6 +2,23 @@
(ZIP-Archives including APK, readme + profiles)
### next version
Android
- bug fix for repeat last route <repeat:...>
Library
- ISO8601 compatible timestamps in log
- Update MIME type for GeoJSON responses
Profiles
- update gravel profile
[Solved issues](https://github.com/abrensch/brouter/issues?q=is%3Aissue+milestone%3A%22Version+1.7.5%22+is%3Aclosed)
### [brouter-1.7.4.zip](../brouter_bin/brouter-1.7.4.zip) (current revision, 09.04.2024)