Fix srtm free plugin
This commit is contained in:
parent
4e045d7f7b
commit
6214c54bdf
2 changed files with 3 additions and 2 deletions
|
@ -67,7 +67,7 @@ public abstract class OsmandPlugin {
|
|||
installedPlugins.add(new AccessibilityPlugin(app));
|
||||
if(!installPlugin(SRTM_PLUGIN_COMPONENT_PAID, SRTMPlugin.ID, app,
|
||||
new SRTMPlugin(app, true))) {
|
||||
installPlugin(SRTM_PLUGIN_COMPONENT, SRTMPlugin.ID, app,
|
||||
installPlugin(SRTM_PLUGIN_COMPONENT, SRTMPlugin.FREE_ID, app,
|
||||
new SRTMPlugin(app, false));
|
||||
}
|
||||
installPlugin(PARKING_PLUGIN_COMPONENT, ParkingPositionPlugin.ID, app, new ParkingPositionPlugin(app));
|
||||
|
|
|
@ -15,6 +15,7 @@ import android.content.DialogInterface;
|
|||
public class SRTMPlugin extends OsmandPlugin {
|
||||
|
||||
public static final String ID = "osmand.srtm";
|
||||
public static final String FREE_ID = "osmand.srtm.paid";
|
||||
private OsmandApplication app;
|
||||
private boolean paid;
|
||||
private HillshadeLayer hillshadeLayer;
|
||||
|
@ -22,7 +23,7 @@ public class SRTMPlugin extends OsmandPlugin {
|
|||
|
||||
@Override
|
||||
public String getId() {
|
||||
return ID;
|
||||
return paid ? ID : FREE_ID;
|
||||
}
|
||||
|
||||
public SRTMPlugin(OsmandApplication app, boolean paid) {
|
||||
|
|
Loading…
Reference in a new issue