From ac1ddcae11accf03036b9869220d5712d80afef0 Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 12 Nov 2019 09:15:42 +0200 Subject: [PATCH] Hide nautical and ski maps plugins from configure screen --- .../net/osmand/plus/settings/ConfigureProfileFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/settings/ConfigureProfileFragment.java b/OsmAnd/src/net/osmand/plus/settings/ConfigureProfileFragment.java index 2a12d96c9c..e1dbfbc28f 100644 --- a/OsmAnd/src/net/osmand/plus/settings/ConfigureProfileFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/ConfigureProfileFragment.java @@ -36,11 +36,12 @@ import net.osmand.plus.OsmandPlugin; import net.osmand.plus.R; import net.osmand.plus.SettingsHelper; import net.osmand.plus.SettingsHelper.ProfileSettingsItem; -import net.osmand.plus.UiUtilities; import net.osmand.plus.activities.MapActivity; import net.osmand.plus.activities.PluginActivity; import net.osmand.plus.helpers.FontCache; +import net.osmand.plus.openseamapsplugin.NauticalMapsPlugin; import net.osmand.plus.settings.preferences.SwitchPreferenceEx; +import net.osmand.plus.skimapsplugin.SkiMapsPlugin; import org.apache.commons.logging.Log; @@ -258,6 +259,9 @@ public class ConfigureProfileFragment extends BaseSettingsFragment { } List plugins = OsmandPlugin.getVisiblePlugins(); for (OsmandPlugin plugin : plugins) { + if (plugin instanceof SkiMapsPlugin || plugin instanceof NauticalMapsPlugin) { + continue; + } SwitchPreferenceEx preference = new SwitchPreferenceEx(ctx); preference.setPersistent(false); preference.setKey(plugin.getId());