Add check for routeCalculationInProgress before opening menu to half screen
This commit is contained in:
parent
acccb045c9
commit
be06fd3a6b
1 changed files with 5 additions and 4 deletions
|
@ -406,12 +406,12 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
|
||||||
if (app != null && fragmentRef != null && fragment.isVisible()) {
|
if (app != null && fragmentRef != null && fragment.isVisible()) {
|
||||||
boolean routeCalculating = app.getRoutingHelper().isRouteBeingCalculated() || app.getTransportRoutingHelper().isRouteBeingCalculated();
|
boolean routeCalculating = app.getRoutingHelper().isRouteBeingCalculated() || app.getTransportRoutingHelper().isRouteBeingCalculated();
|
||||||
if (setRouteCalculationInProgress(routeCalculating)) {
|
if (setRouteCalculationInProgress(routeCalculating)) {
|
||||||
if (!routeCalculationInProgress) {
|
|
||||||
fragment.hideRouteCalculationProgressBar();
|
|
||||||
}
|
|
||||||
fragment.updateControlButtons();
|
fragment.updateControlButtons();
|
||||||
fragment.updateInfo();
|
fragment.updateInfo();
|
||||||
fragment.openMenuHalfScreen();
|
if (!routeCalculationInProgress) {
|
||||||
|
fragment.hideRouteCalculationProgressBar();
|
||||||
|
fragment.openMenuHalfScreen();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -705,6 +705,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
|
||||||
routingHelper.setAppMode(next);
|
routingHelper.setAppMode(next);
|
||||||
app.initVoiceCommandPlayer(mapActivity, next, true, null, false, false);
|
app.initVoiceCommandPlayer(mapActivity, next, true, null, false, false);
|
||||||
routingHelper.recalculateRouteDueToSettingsChange();
|
routingHelper.recalculateRouteDueToSettingsChange();
|
||||||
|
updateMenu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue