Merge pull request #678 from afischerdev/rework-voicehint
Last message in track
This commit is contained in:
commit
7b176b4b6f
1 changed files with 6 additions and 0 deletions
|
@ -345,6 +345,12 @@ public final class OsmTrack {
|
||||||
if (i > 0 || ourSize == 0) {
|
if (i > 0 || ourSize == 0) {
|
||||||
e.setTime(e.getTime() + t0);
|
e.setTime(e.getTime() + t0);
|
||||||
e.setEnergy(e.getEnergy() + e0);
|
e.setEnergy(e.getEnergy() + e0);
|
||||||
|
if (e.message != null){
|
||||||
|
if (!(e.message.lon == e.getILon() && e.message.lat == e.getILat())) {
|
||||||
|
e.message.lon = e.getILon();
|
||||||
|
e.message.lat = e.getILat();
|
||||||
|
}
|
||||||
|
}
|
||||||
nodes.add(e);
|
nodes.add(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue