From 6b89b733d680af1c46b481204615e862d2a6189d Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 14 Jun 2013 00:29:16 +0200 Subject: [PATCH] fix build --- .../src/net/osmand/plus/activities/MapActivityActions.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index 9416df4948..0a7a12f530 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -1226,7 +1226,7 @@ public class MapActivityActions implements DialogProvider { menu.show(); } - public void createDirectionsActions(final QuickAction qa , final LatLon location, final Object obj, final String name, final int z, final Activity activity, + public static void createDirectionsActions(final QuickAction qa , final LatLon location, final Object obj, final String name, final int z, final Activity activity, final boolean saveHistory, final OnClickListener onShow){ ActionItem showOnMap = new ActionItem(); @@ -1256,9 +1256,7 @@ public class MapActivityActions implements DialogProvider { if(onShow != null) { onShow.onClick(v); } - //targetPointsHelper.setSingleDestination(location.getLatitude(), location.getLongitude(), name); - getMyApplication().getSettings().setPointToNavigate(location.getLatitude(), location.getLongitude(), true, name); - targetPointsHelper.updatePointsFromSettings(); + targetPointsHelper.setSingleDestination(location.getLatitude(), location.getLongitude(), name); MapActivity.launchMapActivityMoveToTop(activity); qa.dismiss(); }