Small naming change.
This commit is contained in:
parent
2dd280516e
commit
aaf5ed7298
4 changed files with 11 additions and 14 deletions
|
@ -37,7 +37,7 @@ import net.osmand.plus.render.RenderingIcons;
|
||||||
import net.osmand.plus.routing.RoutingHelper;
|
import net.osmand.plus.routing.RoutingHelper;
|
||||||
import net.osmand.plus.views.ContextMenuLayer;
|
import net.osmand.plus.views.ContextMenuLayer;
|
||||||
import net.osmand.plus.views.DownloadedRegionsLayer;
|
import net.osmand.plus.views.DownloadedRegionsLayer;
|
||||||
import net.osmand.plus.views.FavoritesLayer;
|
import net.osmand.plus.views.FavouritesLayer;
|
||||||
import net.osmand.plus.views.GPXLayer;
|
import net.osmand.plus.views.GPXLayer;
|
||||||
import net.osmand.plus.views.ImpassableRoadsLayer;
|
import net.osmand.plus.views.ImpassableRoadsLayer;
|
||||||
import net.osmand.plus.views.MapControlsLayer;
|
import net.osmand.plus.views.MapControlsLayer;
|
||||||
|
@ -72,7 +72,7 @@ public class MapActivityLayers {
|
||||||
private GPXLayer gpxLayer;
|
private GPXLayer gpxLayer;
|
||||||
private RouteLayer routeLayer;
|
private RouteLayer routeLayer;
|
||||||
private POIMapLayer poiMapLayer;
|
private POIMapLayer poiMapLayer;
|
||||||
private FavoritesLayer favoritesLayer;
|
private FavouritesLayer mFavouritesLayer;
|
||||||
private TransportStopsLayer transportStopsLayer;
|
private TransportStopsLayer transportStopsLayer;
|
||||||
private TransportInfoLayer transportInfoLayer;
|
private TransportInfoLayer transportInfoLayer;
|
||||||
private PointLocationLayer locationLayer;
|
private PointLocationLayer locationLayer;
|
||||||
|
@ -138,8 +138,8 @@ public class MapActivityLayers {
|
||||||
poiMapLayer = new POIMapLayer(activity);
|
poiMapLayer = new POIMapLayer(activity);
|
||||||
mapView.addLayer(poiMapLayer, 3);
|
mapView.addLayer(poiMapLayer, 3);
|
||||||
// 4. favorites layer
|
// 4. favorites layer
|
||||||
favoritesLayer = new FavoritesLayer();
|
mFavouritesLayer = new FavouritesLayer();
|
||||||
mapView.addLayer(favoritesLayer, 4);
|
mapView.addLayer(mFavouritesLayer, 4);
|
||||||
// 5. transport layer
|
// 5. transport layer
|
||||||
transportStopsLayer = new TransportStopsLayer();
|
transportStopsLayer = new TransportStopsLayer();
|
||||||
// 5.5 transport info layer
|
// 5.5 transport info layer
|
||||||
|
@ -565,8 +565,8 @@ public class MapActivityLayers {
|
||||||
return contextMenuLayer;
|
return contextMenuLayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FavoritesLayer getFavoritesLayer() {
|
public FavouritesLayer getFavouritesLayer() {
|
||||||
return favoritesLayer;
|
return mFavouritesLayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTextLayer getMapTextLayer() {
|
public MapTextLayer getMapTextLayer() {
|
||||||
|
|
|
@ -363,7 +363,7 @@ public class ExternalApiHelper {
|
||||||
FavouritesDbHelper helper = app.getFavorites();
|
FavouritesDbHelper helper = app.getFavorites();
|
||||||
helper.addFavourite(fav);
|
helper.addFavourite(fav);
|
||||||
|
|
||||||
showOnMap(lat, lon, fav, mapActivity.getMapLayers().getFavoritesLayer().getObjectName(fav));
|
showOnMap(lat, lon, fav, mapActivity.getMapLayers().getFavouritesLayer().getObjectName(fav));
|
||||||
resultCode = Activity.RESULT_OK;
|
resultCode = Activity.RESULT_OK;
|
||||||
|
|
||||||
} else if (API_CMD_ADD_MAP_MARKER.equals(cmd)) {
|
} else if (API_CMD_ADD_MAP_MARKER.equals(cmd)) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package net.osmand.plus.osmedit;
|
package net.osmand.plus.osmedit;
|
||||||
|
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.graphics.BitmapFactory;
|
import android.graphics.BitmapFactory;
|
||||||
|
@ -8,13 +9,13 @@ import android.graphics.Canvas;
|
||||||
import android.graphics.Paint;
|
import android.graphics.Paint;
|
||||||
import android.graphics.PointF;
|
import android.graphics.PointF;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
import android.os.Bundle;
|
|
||||||
import android.support.v7.app.AlertDialog;
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.util.Xml;
|
import android.util.Xml;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import net.osmand.AndroidUtils;
|
import net.osmand.AndroidUtils;
|
||||||
import net.osmand.PlatformUtil;
|
import net.osmand.PlatformUtil;
|
||||||
import net.osmand.data.LatLon;
|
import net.osmand.data.LatLon;
|
||||||
|
@ -61,11 +62,6 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
|
||||||
private Bitmap resolvedNoteSmall;
|
private Bitmap resolvedNoteSmall;
|
||||||
|
|
||||||
private final MapActivity activity;
|
private final MapActivity activity;
|
||||||
protected static final String KEY_BUG = "bug";
|
|
||||||
protected static final String KEY_TEXT = "text";
|
|
||||||
protected static final String KEY_ACTION = "action";
|
|
||||||
private static final int DIALOG_BUG = 305;
|
|
||||||
private static Bundle dialogBundle = new Bundle();
|
|
||||||
private OsmBugsLocalUtil local;
|
private OsmBugsLocalUtil local;
|
||||||
private MapLayerData<List<OpenStreetNote>> data;
|
private MapLayerData<List<OpenStreetNote>> data;
|
||||||
|
|
||||||
|
@ -400,6 +396,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
|
||||||
OsmBugsUtil util = getOsmbugsUtil(bug);
|
OsmBugsUtil util = getOsmbugsUtil(bug);
|
||||||
final boolean offline = util instanceof OsmBugsLocalUtil;
|
final boolean offline = util instanceof OsmBugsLocalUtil;
|
||||||
|
|
||||||
|
@SuppressLint("InflateParams")
|
||||||
final View view = LayoutInflater.from(activity).inflate(R.layout.open_bug, null);
|
final View view = LayoutInflater.from(activity).inflate(R.layout.open_bug, null);
|
||||||
if (offline) {
|
if (offline) {
|
||||||
view.findViewById(R.id.user_name_field).setVisibility(View.GONE);
|
view.findViewById(R.id.user_name_field).setVisibility(View.GONE);
|
||||||
|
|
|
@ -29,7 +29,7 @@ import net.osmand.plus.views.MapTextLayer.MapTextProvider;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class FavoritesLayer extends OsmandMapLayer implements ContextMenuLayer.IContextMenuProvider,
|
public class FavouritesLayer extends OsmandMapLayer implements ContextMenuLayer.IContextMenuProvider,
|
||||||
ContextMenuLayer.IMoveObjectProvider, MapTextProvider<FavouritePoint> {
|
ContextMenuLayer.IMoveObjectProvider, MapTextProvider<FavouritePoint> {
|
||||||
|
|
||||||
protected int startZoom = 6;
|
protected int startZoom = 6;
|
Loading…
Reference in a new issue