Fix route recalculate

This commit is contained in:
Victor Shcherb 2013-04-27 01:34:32 +02:00
parent 11ab262987
commit 9154c23fd6

View file

@ -160,7 +160,8 @@ public class MapActivity extends AccessibleActivity {
createProgressBarForRouting();
// This situtation could be when navigation suddenly crashed and after restarting
// it tries to continue the last route
if(settings.FOLLOW_THE_ROUTE.get() && (!app.getRoutingHelper().isRouteCalculated() || !app.getRoutingHelper().isRouteBeingCalculated())){
if(settings.FOLLOW_THE_ROUTE.get() && !app.getRoutingHelper().isRouteCalculated() &&
!app.getRoutingHelper().isRouteBeingCalculated()){
FailSafeFuntions.restoreRoutingMode(this);
}