public void onMenuPressed() { if (!isVisible()) { setDashboardVisibility(true, DashboardType.DASHBOARD); } else { hideDashboard(); } }
private void backPressed() { if (previousVisibleType != visibleType && previousVisibleType != null) { visibleType = null; setDashboardVisibility(true, previousVisibleType); } else { hideDashboard(); } }
public void navigationAction() { RoutingHelper routingHelper = mapActivity.getRoutingHelper(); if (!routingHelper.isFollowingMode() && !routingHelper.isRoutePlanningMode()) { mapActivity.getMapActions().enterRoutePlanningMode(null, null); } else { mapActivity.getRoutingHelper().setRoutePlanningMode(true); mapActivity.getMapViewTrackingUtilities().switchToRoutePlanningMode(); mapActivity.refreshMap(); } hideDashboard(true); }