Make mapillary plugin visible

This commit is contained in:
Vitaliy 2021-02-03 15:31:49 +02:00
parent 9efab732f2
commit 78c2dbbc1a
3 changed files with 3 additions and 9 deletions

View file

@ -273,7 +273,7 @@ public abstract class OsmandPlugin {
allPlugins.clear(); allPlugins.clear();
enableHiddenPlugin(app, enabledPlugins, new MapillaryPlugin(app)); allPlugins.add(new MapillaryPlugin(app));
enableHiddenPlugin(app, enabledPlugins, new WikipediaPlugin(app)); enableHiddenPlugin(app, enabledPlugins, new WikipediaPlugin(app));
allPlugins.add(new OsmandRasterMapsPlugin(app)); allPlugins.add(new OsmandRasterMapsPlugin(app));

View file

@ -62,11 +62,6 @@ public class MapillaryPlugin extends OsmandPlugin {
settings = app.getSettings(); settings = app.getSettings();
} }
@Override
public boolean isVisible() {
return false;
}
@Override @Override
public int getLogoResourceId() { public int getLogoResourceId() {
return R.drawable.ic_action_mapillary; return R.drawable.ic_action_mapillary;

View file

@ -2,8 +2,6 @@ package net.osmand.plus.openplacereviews;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import androidx.annotation.Nullable;
import net.osmand.AndroidNetworkUtils; import net.osmand.AndroidNetworkUtils;
import net.osmand.PlatformUtil; import net.osmand.PlatformUtil;
import net.osmand.data.Amenity; import net.osmand.data.Amenity;
@ -25,6 +23,7 @@ import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Map;
public class OpenPlaceReviewsPlugin extends OsmandPlugin { public class OpenPlaceReviewsPlugin extends OsmandPlugin {
@ -85,7 +84,7 @@ public class OpenPlaceReviewsPlugin extends OsmandPlugin {
} }
@Override @Override
protected List<ImageCard> getImageCards(@Nullable GetImageCardsListener listener) { protected List<ImageCard> getImageCards(Map<String, String> params, Map<String, String> additionalParams, GetImageCardsListener listener) {
List<ImageCard> imageCards = new ArrayList<>(); List<ImageCard> imageCards = new ArrayList<>();
if (mapActivity != null) { if (mapActivity != null) {
Object object = mapActivity.getMapLayers().getContextMenuLayer().getSelectedObject(); Object object = mapActivity.getMapLayers().getContextMenuLayer().getSelectedObject();