Hided buttons in sherpafy
This commit is contained in:
parent
ea4935e089
commit
d9f3ce6aec
3 changed files with 10 additions and 2 deletions
|
@ -182,4 +182,6 @@ public class OsmAndAppCustomization {
|
|||
public File getExternalStorageDir() {
|
||||
return osmandSettings.getExternalStorageDirectory();
|
||||
}
|
||||
|
||||
public boolean showNavigationControls() { return true;}
|
||||
}
|
||||
|
|
|
@ -710,4 +710,9 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
|
|||
}
|
||||
return searchDeviationRadius;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean showNavigationControls() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue