From 8743b53bff2a4e859f6612509f0ae1e29c6e3a91 Mon Sep 17 00:00:00 2001 From: MadWasp79 Date: Tue, 18 Feb 2020 16:55:36 +0200 Subject: [PATCH] icons --- .../src/net/osmand/plus/settings/RouteParametersFragment.java | 1 + OsmAnd/src/net/osmand/plus/views/RouteLayer.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/settings/RouteParametersFragment.java b/OsmAnd/src/net/osmand/plus/settings/RouteParametersFragment.java index 315162bc80..ee1b308c39 100644 --- a/OsmAnd/src/net/osmand/plus/settings/RouteParametersFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/RouteParametersFragment.java @@ -249,6 +249,7 @@ public class RouteParametersFragment extends BaseSettingsFragment implements OnP straightAngle.setTitle(getString(R.string.recalc_angle_dialog_title)); straightAngle.setSummary(String.format(getString(R.string.shared_string_angle_param), (int) am.getStrAngle())); straightAngle.setLayoutResource(R.layout.preference_with_descr); + straightAngle.setIcon(getRoutingPrefIcon("routing_recalc_distance")); //TODO change for appropriate icon when available getPreferenceScreen().addPreference(straightAngle); } } diff --git a/OsmAnd/src/net/osmand/plus/views/RouteLayer.java b/OsmAnd/src/net/osmand/plus/views/RouteLayer.java index 874696db07..91af884301 100644 --- a/OsmAnd/src/net/osmand/plus/views/RouteLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/RouteLayer.java @@ -319,7 +319,7 @@ public class RouteLayer extends OsmandMapLayer implements ContextMenuLayer.ICont private void drawProjectionPoint(Canvas canvas, double[] projectionXY) { if (projectionIcon == null) { - projectionIcon = (LayerDrawable) view.getResources().getDrawable(helper.getSettings().getApplicationMode().getLocationIcon().getIconId()); + projectionIcon = (LayerDrawable) view.getResources().getDrawable(helper.getSettings().getApplicationMode().getLocationIcon().DEFAULT.getIconId()); } int locationX = (int) projectionXY[0]; int locationY = (int) projectionXY[1];