This commit is contained in:
MadWasp79 2020-02-18 16:55:36 +02:00
parent f00bb9a71f
commit 8743b53bff
2 changed files with 2 additions and 1 deletions

View file

@ -249,6 +249,7 @@ public class RouteParametersFragment extends BaseSettingsFragment implements OnP
straightAngle.setTitle(getString(R.string.recalc_angle_dialog_title)); straightAngle.setTitle(getString(R.string.recalc_angle_dialog_title));
straightAngle.setSummary(String.format(getString(R.string.shared_string_angle_param), (int) am.getStrAngle())); straightAngle.setSummary(String.format(getString(R.string.shared_string_angle_param), (int) am.getStrAngle()));
straightAngle.setLayoutResource(R.layout.preference_with_descr); straightAngle.setLayoutResource(R.layout.preference_with_descr);
straightAngle.setIcon(getRoutingPrefIcon("routing_recalc_distance")); //TODO change for appropriate icon when available
getPreferenceScreen().addPreference(straightAngle); getPreferenceScreen().addPreference(straightAngle);
} }
} }

View file

@ -319,7 +319,7 @@ public class RouteLayer extends OsmandMapLayer implements ContextMenuLayer.ICont
private void drawProjectionPoint(Canvas canvas, double[] projectionXY) { private void drawProjectionPoint(Canvas canvas, double[] projectionXY) {
if (projectionIcon == null) { 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 locationX = (int) projectionXY[0];
int locationY = (int) projectionXY[1]; int locationY = (int) projectionXY[1];