fix - return cut usage for map_ icons
This commit is contained in:
parent
5e0a3ecabe
commit
ca37eb40a5
5 changed files with 7 additions and 4 deletions
|
@ -11,6 +11,9 @@
|
||||||
Thx - Hardy
|
Thx - Hardy
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
<string name="app_mode_personal_transporter">Personal transporter</string>
|
||||||
|
<string name="app_mode_monowheel">Monowheel</string>
|
||||||
|
<string name="app_mode_scooter">Scooter</string>
|
||||||
<string name="shared_string_min_speed">Min. speed</string>
|
<string name="shared_string_min_speed">Min. speed</string>
|
||||||
<string name="shared_string_max_speed">Max. speed</string>
|
<string name="shared_string_max_speed">Max. speed</string>
|
||||||
<string name="default_speed_setting_title">Default speed</string>
|
<string name="default_speed_setting_title">Default speed</string>
|
||||||
|
|
|
@ -215,7 +215,7 @@ public class ApplicationMode {
|
||||||
public ApplicationModeBuilder icon(int iconRes, int iconMapRes, String iconResName) {
|
public ApplicationModeBuilder icon(int iconRes, int iconMapRes, String iconResName) {
|
||||||
try {
|
try {
|
||||||
applicationMode.iconResName = iconResName;
|
applicationMode.iconResName = iconResName;
|
||||||
applicationMode.iconMapRes = iconRes;
|
applicationMode.iconMapRes = iconMapRes;
|
||||||
applicationMode.iconRes = iconRes;
|
applicationMode.iconRes = iconRes;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
|
|
|
@ -661,7 +661,7 @@ public class PlanRouteFragment extends BaseOsmAndFragment implements OsmAndLocat
|
||||||
if (mapActivity != null) {
|
if (mapActivity != null) {
|
||||||
final ImageButton appModesBtn = (ImageButton) mapActivity.findViewById(R.id.snap_to_road_image_button);
|
final ImageButton appModesBtn = (ImageButton) mapActivity.findViewById(R.id.snap_to_road_image_button);
|
||||||
appModesBtn.setBackgroundResource(nightMode ? R.drawable.btn_circle_night : R.drawable.btn_circle);
|
appModesBtn.setBackgroundResource(nightMode ? R.drawable.btn_circle_night : R.drawable.btn_circle);
|
||||||
appModesBtn.setImageDrawable(getActiveIcon(planRouteContext.getSnappedMode().getIconRes()));
|
appModesBtn.setImageDrawable(getActiveIcon(planRouteContext.getSnappedMode().getMapIconRes()));
|
||||||
appModesBtn.setOnClickListener(new View.OnClickListener() {
|
appModesBtn.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
|
|
@ -805,7 +805,7 @@ public class MeasurementToolFragment extends BaseOsmAndFragment {
|
||||||
|
|
||||||
ImageButton snapToRoadBtn = (ImageButton) mapActivity.findViewById(R.id.snap_to_road_image_button);
|
ImageButton snapToRoadBtn = (ImageButton) mapActivity.findViewById(R.id.snap_to_road_image_button);
|
||||||
snapToRoadBtn.setBackgroundResource(nightMode ? R.drawable.btn_circle_night : R.drawable.btn_circle);
|
snapToRoadBtn.setBackgroundResource(nightMode ? R.drawable.btn_circle_night : R.drawable.btn_circle);
|
||||||
snapToRoadBtn.setImageDrawable(getIcon(appMode.getIconRes(), appMode.getIconColorInfo().getColor(nightMode)));
|
snapToRoadBtn.setImageDrawable(getIcon(appMode.getMapIconRes(), appMode.getIconColorInfo().getColor(nightMode)));
|
||||||
snapToRoadBtn.setOnClickListener(new View.OnClickListener() {
|
snapToRoadBtn.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
|
|
@ -796,7 +796,7 @@ public class MapControlsLayer extends OsmandMapLayer {
|
||||||
compassHud.forceHideCompass = forceHideCompass;
|
compassHud.forceHideCompass = forceHideCompass;
|
||||||
compassHud.updateVisibility(!forceHideCompass && shouldShowCompass());
|
compassHud.updateVisibility(!forceHideCompass && shouldShowCompass());
|
||||||
|
|
||||||
if (layersHud.setIconResId(settings.getApplicationMode().getIconRes())) {
|
if (layersHud.setIconResId(settings.getApplicationMode().getMapIconRes())) {
|
||||||
layersHud.update(app, isNight);
|
layersHud.update(app, isNight);
|
||||||
}
|
}
|
||||||
layersHud.updateVisibility(!routeDialogOpened && !trackDialogOpened && !isInMeasurementToolMode() && !isInPlanRouteMode()
|
layersHud.updateVisibility(!routeDialogOpened && !trackDialogOpened && !isInMeasurementToolMode() && !isInPlanRouteMode()
|
||||||
|
|
Loading…
Reference in a new issue