Fix Issue 1795:Routing is aborted at screen rotation

This commit is contained in:
Victor Shcherb 2013-04-18 23:53:00 +02:00
parent 9e1fb46a28
commit 428c2c8cb5

View file

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