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,15 +406,15 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
|
|||
if (app != null && fragmentRef != null && fragment.isVisible()) {
|
||||
boolean routeCalculating = app.getRoutingHelper().isRouteBeingCalculated() || app.getTransportRoutingHelper().isRouteBeingCalculated();
|
||||
if (setRouteCalculationInProgress(routeCalculating)) {
|
||||
if (!routeCalculationInProgress) {
|
||||
fragment.hideRouteCalculationProgressBar();
|
||||
}
|
||||
fragment.updateControlButtons();
|
||||
fragment.updateInfo();
|
||||
if (!routeCalculationInProgress) {
|
||||
fragment.hideRouteCalculationProgressBar();
|
||||
fragment.openMenuHalfScreen();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void openMenuFullScreen() {
|
||||
WeakReference<MapRouteInfoMenuFragment> fragmentRef = findMenuFragment();
|
||||
|
@ -705,6 +705,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
|
|||
routingHelper.setAppMode(next);
|
||||
app.initVoiceCommandPlayer(mapActivity, next, true, null, false, false);
|
||||
routingHelper.recalculateRouteDueToSettingsChange();
|
||||
updateMenu();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue