Show turn info in simulation
This commit is contained in:
parent
4c09ec2ce2
commit
4ba932bb6e
1 changed files with 6 additions and 2 deletions
|
@ -412,7 +412,9 @@ public class RoutingHelper {
|
||||||
int toDel = targets.getIntermediatePoints().size() - route.getIntermediatePointsToPass();
|
int toDel = targets.getIntermediatePoints().size() - route.getIntermediatePointsToPass();
|
||||||
int currentIndex = toDel - 1;
|
int currentIndex = toDel - 1;
|
||||||
String name = currentIndex < 0 || currentIndex >= ns.size() || ns.get(currentIndex ) == null ? "" : ns.get(currentIndex );
|
String name = currentIndex < 0 || currentIndex >= ns.size() || ns.get(currentIndex ) == null ? "" : ns.get(currentIndex );
|
||||||
|
if(isFollowingMode) {
|
||||||
voiceRouter.arrivedIntermediatePoint(name);
|
voiceRouter.arrivedIntermediatePoint(name);
|
||||||
|
}
|
||||||
while(toDel > 0) {
|
while(toDel > 0) {
|
||||||
targets.removeWayPoint(false, 0);
|
targets.removeWayPoint(false, 0);
|
||||||
toDel--;
|
toDel--;
|
||||||
|
@ -429,7 +431,9 @@ public class RoutingHelper {
|
||||||
showMessage(app.getString(R.string.arrived_at_destination));
|
showMessage(app.getString(R.string.arrived_at_destination));
|
||||||
TargetPointsHelper targets = app.getInternalAPI().getTargetPointsHelper();
|
TargetPointsHelper targets = app.getInternalAPI().getTargetPointsHelper();
|
||||||
String description = targets.getPointNavigateDescription();
|
String description = targets.getPointNavigateDescription();
|
||||||
|
if(isFollowingMode) {
|
||||||
voiceRouter.arrivedDestinationPoint(description);
|
voiceRouter.arrivedDestinationPoint(description);
|
||||||
|
}
|
||||||
clearCurrentRoute(null, null);
|
clearCurrentRoute(null, null);
|
||||||
setRoutePlanningMode(false);
|
setRoutePlanningMode(false);
|
||||||
app.runInUIThread(new Runnable() {
|
app.runInUIThread(new Runnable() {
|
||||||
|
|
Loading…
Reference in a new issue