Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2013-11-25 16:09:16 +01:00
commit 8c70c18ef4
3 changed files with 7 additions and 5 deletions

View file

@ -28,7 +28,8 @@ import net.osmand.plus.PoiFilter;
import net.osmand.plus.R;
import net.osmand.plus.TargetPointsHelper;
import net.osmand.plus.Version;
import net.osmand.plus.activities.MapActivityActions.DirectionDialogStyle;
import net.osmand.plus.activities.actions.NavigateAction;
import net.osmand.plus.activities.actions.NavigateAction.DirectionDialogStyle;
import net.osmand.plus.activities.search.SearchActivity;
import net.osmand.plus.base.FailSafeFuntions;
import net.osmand.plus.base.MapViewTrackingUtilities;
@ -308,7 +309,7 @@ public class MapActivity extends AccessibleActivity {
Location loc = new Location("map");
loc.setLatitude(mapView.getLatitude());
loc.setLongitude(mapView.getLongitude());
mapActions.getDirections(loc, null, DirectionDialogStyle.create());
new NavigateAction(this).getDirections(loc, null, DirectionDialogStyle.create());
}
if(mapLabelToShow != null && latLonToShow != null){
mapLayers.getContextMenuLayer().setSelectedObject(toShow);

View file

@ -15,6 +15,7 @@ import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandSettings;
import net.osmand.plus.OsmandSettings.OsmandPreference;
import net.osmand.plus.R;
import net.osmand.plus.activities.actions.NavigateAction;
import net.osmand.plus.views.SeekBarPreference;
import android.app.ActionBar;
import android.app.AlertDialog;
@ -305,7 +306,7 @@ public abstract class SettingsBaseActivity extends SherlockPreferenceActivity im
protected void profileDialog() {
Builder b = new AlertDialog.Builder(this);
final Set<ApplicationMode> selected = new LinkedHashSet<ApplicationMode>();
View v = MapActivityActions.prepareAppModeView(this, selected, false, null,
View v = NavigateAction.prepareAppModeView(this, selected, false, null,
new View.OnClickListener() {
@Override
public void onClick(View v) {

View file

@ -13,7 +13,7 @@ import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandSettings;
import net.osmand.plus.R;
import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.activities.MapActivityActions;
import net.osmand.plus.activities.actions.NavigateAction;
import net.osmand.plus.routing.RoutingHelper;
import net.osmand.plus.views.mapwidgets.AppearanceWidgetsFactory;
import net.osmand.plus.views.mapwidgets.BaseMapWidget;
@ -423,7 +423,7 @@ public class MapInfoLayer extends OsmandMapLayer {
Builder b = new AlertDialog.Builder(map);
View confirmDialog = view.inflate(view.getContext(), R.layout.configuration_dialog, null);
final ListView lv = (ListView) confirmDialog.findViewById(android.R.id.list);
MapActivityActions.prepareAppModeView(map, selected, true,
NavigateAction.prepareAppModeView(map, selected, true,
(ViewGroup) confirmDialog.findViewById(R.id.TopBar),
new View.OnClickListener() {
@Override