use of net.osmand.plus.plugins.openplacereviews.OpenPlaceReviewsPlugin in project Osmand by osmandapp.
the class OsmandDevelopmentPlugin method disable.
@Override
public void disable(OsmandApplication app) {
OsmEditingPlugin osmPlugin = OsmandPlugin.getPlugin(OsmEditingPlugin.class);
if (osmPlugin != null && osmPlugin.OSM_USE_DEV_URL.get()) {
osmPlugin.OSM_USE_DEV_URL.set(false);
app.getOsmOAuthHelper().resetAuthorization();
}
OpenPlaceReviewsPlugin oprPlugin = OsmandPlugin.getPlugin(OpenPlaceReviewsPlugin.class);
if (oprPlugin != null && oprPlugin.OPR_USE_DEV_URL.get()) {
oprPlugin.OPR_USE_DEV_URL.set(false);
app.getOprAuthHelper().resetAuthorization();
}
super.disable(app);
}
use of net.osmand.plus.plugins.openplacereviews.OpenPlaceReviewsPlugin in project Osmand by osmandapp.
the class OsmandPlugin method initPlugins.
public static void initPlugins(@NonNull OsmandApplication app) {
Set<String> enabledPlugins = app.getSettings().getEnabledPlugins();
allPlugins.clear();
allPlugins.add(new WikipediaPlugin(app));
allPlugins.add(new OsmandRasterMapsPlugin(app));
allPlugins.add(new OsmandMonitoringPlugin(app));
checkMarketPlugin(app, new SRTMPlugin(app));
checkMarketPlugin(app, new NauticalMapsPlugin(app));
checkMarketPlugin(app, new SkiMapsPlugin(app));
allPlugins.add(new AudioVideoNotesPlugin(app));
checkMarketPlugin(app, new ParkingPositionPlugin(app));
allPlugins.add(new OsmEditingPlugin(app));
allPlugins.add(new OpenPlaceReviewsPlugin(app));
allPlugins.add(new MapillaryPlugin(app));
allPlugins.add(new AccessibilityPlugin(app));
allPlugins.add(new OsmandDevelopmentPlugin(app));
loadCustomPlugins(app);
registerAppInitializingDependedProperties(app);
enablePluginsByDefault(app, enabledPlugins);
activatePlugins(app, enabledPlugins);
}
Aggregations