Skip to content

Commit

Permalink
Fix nautical item visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Chumva committed Jul 31, 2023
1 parent 35c1862 commit 2875e87
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import net.osmand.plus.download.LocalIndexHelper;
import net.osmand.plus.download.LocalIndexInfo;
import net.osmand.plus.plugins.OsmandPlugin;
import net.osmand.plus.plugins.PluginsHelper;
import net.osmand.plus.plugins.srtm.SRTMPlugin;
import net.osmand.plus.render.RendererRegistry;
import net.osmand.plus.settings.backend.ApplicationMode;
import net.osmand.plus.settings.backend.OsmandSettings;
Expand Down Expand Up @@ -111,6 +113,15 @@ public void createAdapterItem(@NonNull ContextMenuAdapter adapter,
}
}

@Override
public void registerLayerContextMenuActions(@NonNull ContextMenuAdapter menuAdapter,
@NonNull MapActivity mapActivity,
@NonNull List<RenderingRuleProperty> customRules) {
if (!PluginsHelper.isEnabled(SRTMPlugin.class)) {
createAdapterItem(menuAdapter, mapActivity, customRules);
}
}

private boolean hasDepthMaps() {
boolean readFiles = !app.getResourceManager().isIndexesLoadedOnStart();
LocalIndexHelper helper = new LocalIndexHelper(app);
Expand Down

0 comments on commit 2875e87

Please sign in to comment.