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();
rendererRegistry = new RendererRegistry();
targetPointsHelper = new TargetPointsHelper(this);
if(!osmandSettings.FOLLOW_THE_ROUTE.get()) {
targetPointsHelper.clearPointToNavigate(false);
}
checkPrefferedLocale();
startApplication();

View file

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