clear destination point every start
This commit is contained in:
parent
59fa38dc36
commit
a0d1664c75
2 changed files with 5 additions and 2 deletions
|
@ -140,6 +140,9 @@ public class OsmandApplication extends Application implements ClientContext {
|
||||||
uiHandler = new Handler();
|
uiHandler = new Handler();
|
||||||
rendererRegistry = new RendererRegistry();
|
rendererRegistry = new RendererRegistry();
|
||||||
targetPointsHelper = new TargetPointsHelper(this);
|
targetPointsHelper = new TargetPointsHelper(this);
|
||||||
|
if(!osmandSettings.FOLLOW_THE_ROUTE.get()) {
|
||||||
|
targetPointsHelper.clearPointToNavigate(false);
|
||||||
|
}
|
||||||
|
|
||||||
checkPrefferedLocale();
|
checkPrefferedLocale();
|
||||||
startApplication();
|
startApplication();
|
||||||
|
|
|
@ -382,8 +382,8 @@ public class RoutingHelper {
|
||||||
showMessage(app.getString(R.string.arrived_at_destination));
|
showMessage(app.getString(R.string.arrived_at_destination));
|
||||||
voiceRouter.arrivedDestinationPoint();
|
voiceRouter.arrivedDestinationPoint();
|
||||||
clearCurrentRoute(null, null);
|
clearCurrentRoute(null, null);
|
||||||
TargetPointsHelper targets = app.getInternalAPI().getTargetPointsHelper();
|
// TargetPointsHelper targets = app.getInternalAPI().getTargetPointsHelper();
|
||||||
targets.clearPointToNavigate(false);
|
// targets.clearPointToNavigate(false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue