Show 'stop routing' already while route is being calculated

This commit is contained in:
sonora 2012-01-30 23:52:38 +01:00
parent fa7a3c2996
commit 706d59527d

View file

@ -1038,7 +1038,7 @@ public class MapActivity extends TrackedActivity implements IMapLocationListener
MenuItem navigateToPointMenu = menu.findItem(R.id.map_navigate_to_point); MenuItem navigateToPointMenu = menu.findItem(R.id.map_navigate_to_point);
if (navigateToPointMenu != null) { if (navigateToPointMenu != null) {
if (settings.getPointToNavigate() != null) { if (settings.getPointToNavigate() != null) {
navigateToPointMenu.setTitle(routingHelper.isRouteCalculated() ? R.string.stop_routing : R.string.stop_navigation); navigateToPointMenu.setTitle((routingHelper.isRouteCalculated() || routingHelper.isFollowingMode()) ? R.string.stop_routing : R.string.stop_navigation);
navigateToPointMenu.setVisible(true); navigateToPointMenu.setVisible(true);
} else { } else {
navigateToPointMenu.setVisible(false); navigateToPointMenu.setVisible(false);