Blue arrow button for route prep mode

This commit is contained in:
Alexey Kulish 2016-03-06 11:18:16 +03:00
parent 1ad2d3f698
commit 5b4406da0f

View file

@ -512,9 +512,12 @@ public class MapControlsLayer extends OsmandMapLayer {
updateMyLocation(rh, dialogOpened);
boolean showButtons = (showRouteCalculationControls || !routeFollowingMode);
//routePlanningBtn.setIconResId(routeFollowingMode ? R.drawable.ic_action_gabout_dark : R.drawable.map_directions);
if (routePlanningMode || routeFollowingMode) {
if (rh.isFollowingMode()) {
routePlanningBtn.setIconResId(R.drawable.map_start_navigation);
routePlanningBtn.setIconColorId(R.color.color_myloc_distance);
} else if (routePlanningMode) {
routePlanningBtn.setIconResId(R.drawable.map_directions);
routePlanningBtn.setIconColorId(R.color.color_myloc_distance);
} else {
routePlanningBtn.setIconResId(R.drawable.map_directions);
routePlanningBtn.resetIconColors();
@ -741,9 +744,14 @@ public class MapControlsLayer extends OsmandMapLayer {
return true;
}
public void resetIconColors() {
public boolean resetIconColors() {
if (resClrLight == R.color.icon_color && resClrDark == 0) {
return false;
}
resClrLight = R.color.icon_color;
resClrDark = 0;
f = true;
return true;
}
public MapHudButton setIconColorId(int clr) {