Fix enabling plugins via aidl in settings
This commit is contained in:
parent
24f604ec19
commit
1fa2a75ff9
1 changed files with 2 additions and 2 deletions
|
@ -308,7 +308,7 @@ public class OsmAndAppCustomization {
|
|||
if (params.getNewState() == 0) {
|
||||
for (OsmandPlugin plugin : OsmandPlugin.getEnabledPlugins()) {
|
||||
if (plugin.getId().equals(params.getPluginId())) {
|
||||
plugin.setActive(false);
|
||||
OsmandPlugin.enablePlugin(null, app, plugin, false);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
@ -317,7 +317,7 @@ public class OsmAndAppCustomization {
|
|||
if (params.getNewState() == 1) {
|
||||
for (OsmandPlugin plugin : OsmandPlugin.getAvailablePlugins()) {
|
||||
if (plugin.getId().equals(params.getPluginId())) {
|
||||
plugin.setActive(true);
|
||||
OsmandPlugin.enablePlugin(null, app, plugin, true);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue