From 5a196542e4f8c3ad11d16fd27f4c779a9afb9675 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 6 Jun 2015 17:25:11 +0200 Subject: [PATCH] SHow options when plugin is active --- OsmAnd/src/net/osmand/plus/activities/PluginsActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/PluginsActivity.java b/OsmAnd/src/net/osmand/plus/activities/PluginsActivity.java index 60390e951c..4325ce9d2c 100644 --- a/OsmAnd/src/net/osmand/plus/activities/PluginsActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/PluginsActivity.java @@ -152,7 +152,7 @@ public class PluginsActivity extends OsmandListActivity { }); } - if (settingsActivity != null) { + if (settingsActivity != null && plugin.isActive()) { MenuItem settingsItem = optionsMenu.getMenu().add(R.string.shared_string_settings); settingsItem.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { @Override @@ -162,7 +162,6 @@ public class PluginsActivity extends OsmandListActivity { return true; } }); - settingsItem.setEnabled(plugin.isActive()); } optionsMenu.show();