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();
|
||||
rendererRegistry = new RendererRegistry();
|
||||
targetPointsHelper = new TargetPointsHelper(this);
|
||||
if(!osmandSettings.FOLLOW_THE_ROUTE.get()) {
|
||||
targetPointsHelper.clearPointToNavigate(false);
|
||||
}
|
||||
|
||||
checkPrefferedLocale();
|
||||
startApplication();
|
||||
|
|
|
@ -382,8 +382,8 @@ public class RoutingHelper {
|
|||
showMessage(app.getString(R.string.arrived_at_destination));
|
||||
voiceRouter.arrivedDestinationPoint();
|
||||
clearCurrentRoute(null, null);
|
||||
TargetPointsHelper targets = app.getInternalAPI().getTargetPointsHelper();
|
||||
targets.clearPointToNavigate(false);
|
||||
// TargetPointsHelper targets = app.getInternalAPI().getTargetPointsHelper();
|
||||
// targets.clearPointToNavigate(false);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue