diff --git a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java index 4f3e84055e..066a1d3d8b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java @@ -266,7 +266,7 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct } else { targetPointsHelper.navigateToPoint(new LatLon(lat, lon), true, targetPointsHelper.getIntermediatePoints().size()); } - IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity); + IntermediatePointsDialog.openIntermediatePointsDialog(getActivity()); MapActivity.launchMapActivityMoveToTop(getActivity()); } else if (mode == SHOW_ON_MAP){ OsmandApplication app = (OsmandApplication) getActivity().getApplication(); diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchAddressFragment.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchAddressFragment.java index 649a3994f5..05a3021940 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchAddressFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchAddressFragment.java @@ -1,5 +1,6 @@ package net.osmand.plus.activities.search; +import net.osmand.plus.activities.IntermediatePointsDialog import java.text.MessageFormat; @@ -303,7 +304,7 @@ public class SearchAddressFragment extends SherlockFragment { } else { targetPointsHelper.navigateToPoint(searchPoint, true, targetPointsHelper.getIntermediatePoints().size()); } - IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity); + IntermediatePointsDialog.openIntermediatePointsDialog(getActivity()); MapActivity.launchMapActivityMoveToTop(getActivity()); } else if (mode == SHOW_ON_MAP) { osmandSettings.setMapLocationToShow(searchPoint.getLatitude(), searchPoint.getLongitude(), zoom, historyName);