SHow options when plugin is active

This commit is contained in:
Victor Shcherb 2015-06-06 17:25:11 +02:00
parent e3ef7c1329
commit 5a196542e4

View file

@ -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); MenuItem settingsItem = optionsMenu.getMenu().add(R.string.shared_string_settings);
settingsItem.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { settingsItem.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
@Override @Override
@ -162,7 +162,6 @@ public class PluginsActivity extends OsmandListActivity {
return true; return true;
} }
}); });
settingsItem.setEnabled(plugin.isActive());
} }
optionsMenu.show(); optionsMenu.show();