Hided buttons in sherpafy

This commit is contained in:
Denis 2014-09-05 19:01:20 +03:00
parent ea4935e089
commit d9f3ce6aec
3 changed files with 10 additions and 2 deletions

View file

@ -182,4 +182,6 @@ public class OsmAndAppCustomization {
public File getExternalStorageDir() {
return osmandSettings.getExternalStorageDirectory();
}
public boolean showNavigationControls() { return true;}
}

View file

@ -710,4 +710,9 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
}
return searchDeviationRadius;
}
@Override
public boolean showNavigationControls() {
return false;
}
}

View file

@ -174,10 +174,11 @@ public class MapControlsLayer extends OsmandMapLayer {
// route calculation buttons
boolean showRouteCalculationControls = routePlanningMode;
boolean showNavigationControls = mapActivity.getMyApplication().getAppCustomization().showNavigationControls();
checkVisibilityAndDraw(showRouteCalculationControls, mapSmallMenuControls, canvas, tileBox, nightMode);
checkVisibilityAndDraw(showRouteCalculationControls, mapCancelNavigationControl, canvas, tileBox, nightMode);
checkVisibilityAndDraw(showNavigationControls && showRouteCalculationControls, mapCancelNavigationControl, canvas, tileBox, nightMode);
checkVisibilityAndDraw(showRouteCalculationControls, mapInfoNavigationControl, canvas, tileBox, nightMode);
checkVisibilityAndDraw(showRouteCalculationControls, mapAppModeControl, canvas, tileBox, nightMode);
checkVisibilityAndDraw(showNavigationControls && showRouteCalculationControls, mapAppModeControl, canvas, tileBox, nightMode);
checkVisibilityAndDraw(showRouteCalculationControls, mapNavigationControl, canvas, tileBox, nightMode);
checkVisibilityAndDraw(showRouteCalculationControls, zoomSideControls, canvas, tileBox, nightMode);