Refactor
This commit is contained in:
parent
964b85ebe6
commit
cbe2bbdb72
2 changed files with 1 additions and 3 deletions
|
@ -42,7 +42,6 @@ public class MapMarkersHelper {
|
|||
private OsmandSettings settings;
|
||||
private List<MapMarkerChangedListener> listeners = new ArrayList<>();
|
||||
private OsmandApplication ctx;
|
||||
private FavouritesDbHelper favouritesDbHelper;
|
||||
private MapMarkersDbHelper markersDbHelper;
|
||||
private boolean startFromMyLocation;
|
||||
private ExecutorService executorService = Executors.newSingleThreadExecutor();
|
||||
|
@ -243,7 +242,6 @@ public class MapMarkersHelper {
|
|||
public MapMarkersHelper(OsmandApplication ctx) {
|
||||
this.ctx = ctx;
|
||||
settings = ctx.getSettings();
|
||||
favouritesDbHelper = ctx.getFavorites();
|
||||
markersDbHelper = ctx.getMapMarkersDbHelper();
|
||||
planRouteContext = new MarkersPlanRouteContext(ctx);
|
||||
startFromMyLocation = settings.ROUTE_MAP_MARKERS_START_MY_LOC.get();
|
||||
|
|
|
@ -498,7 +498,7 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi
|
|||
int r = getRadiusPoi(tileBox);
|
||||
for (int i = 0; i < markers.size(); i++) {
|
||||
MapMarker marker = markers.get(i);
|
||||
if (marker.wptPt == null && marker.favouritePoint == null) {
|
||||
if (!isSynced(marker)) {
|
||||
LatLon latLon = marker.point;
|
||||
if (latLon != null) {
|
||||
int ex = (int) point.x;
|
||||
|
|
Loading…
Reference in a new issue