From 3c73c44b2c50a07f1300bbf6871a9d7e07ee00dd Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 3 Feb 2021 18:00:09 +0200 Subject: [PATCH] Enable opr plugin by default --- .../osmand/plus/openplacereviews/OpenPlaceReviewsPlugin.java | 2 +- .../src/net/osmand/plus/settings/backend/OsmandSettings.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/openplacereviews/OpenPlaceReviewsPlugin.java b/OsmAnd/src/net/osmand/plus/openplacereviews/OpenPlaceReviewsPlugin.java index 3df34da0fd..3bbcee9cfb 100644 --- a/OsmAnd/src/net/osmand/plus/openplacereviews/OpenPlaceReviewsPlugin.java +++ b/OsmAnd/src/net/osmand/plus/openplacereviews/OpenPlaceReviewsPlugin.java @@ -32,7 +32,7 @@ public class OpenPlaceReviewsPlugin extends OsmandPlugin { private static final Log LOG = PlatformUtil.getLog(OpenPlaceReviewsPlugin.class); - private static final String ID = "osmand.openplacereviews"; + public static final String ID = "osmand.openplacereviews"; private MapActivity mapActivity; diff --git a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java index 8ce068b2ae..871fa40bb1 100644 --- a/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/settings/backend/OsmandSettings.java @@ -48,6 +48,7 @@ import net.osmand.plus.helpers.enums.TracksSortByMode; import net.osmand.plus.mapillary.MapillaryPlugin; import net.osmand.plus.mapmarkers.CoordinateInputFormats.Format; import net.osmand.plus.mapmarkers.MapMarkersMode; +import net.osmand.plus.openplacereviews.OpenPlaceReviewsPlugin; import net.osmand.plus.profiles.LocationIcon; import net.osmand.plus.profiles.NavigationIcon; import net.osmand.plus.profiles.ProfileIconColors; @@ -653,7 +654,7 @@ public class OsmandSettings { public static final String NUMBER_OF_FREE_DOWNLOADS_ID = "free_downloads_v3"; // this value string is synchronized with settings_pref.xml preference name - private final OsmandPreference PLUGINS = new StringPreference(this, "enabled_plugins", MapillaryPlugin.ID).makeGlobal().makeShared(); + private final OsmandPreference PLUGINS = new StringPreference(this, "enabled_plugins", MapillaryPlugin.ID + "," + OpenPlaceReviewsPlugin.ID).makeGlobal().makeShared(); public Set getEnabledPlugins() { String plugs = PLUGINS.get();