SHow options when plugin is active
This commit is contained in:
parent
e3ef7c1329
commit
5a196542e4
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue