clear destination point every start

This commit is contained in:
Victor Shcherb 2013-06-05 00:36:39 +02:00
parent 59fa38dc36
commit a0d1664c75
2 changed files with 5 additions and 2 deletions

View file

@ -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();

View file

@ -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;