Update OsmandPlugin.java

This commit is contained in:
vshcherb 2020-02-11 18:13:12 +01:00 committed by GitHub
parent 74bd9a002d
commit eb7931621f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,7 +251,7 @@ public abstract class OsmandPlugin {
boolean paid = plugin.isPaid();
if ((Version.isDeveloperVersion(app) || !Version.isProductionVersion(app)) && !paid) {
// for test reasons
marketEnabled = false;
// marketEnabled = false;
}
if (pckg || (!marketEnabled && !paid)) {
if (pckg && !app.getSettings().getPlugins().contains("-" + plugin.getId())) {
@ -681,4 +681,4 @@ public abstract class OsmandPlugin {
pluginPreferences.add(preference);
return preference;
}
}
}