Skip to content

Commit

Permalink
Remove map theme legends
Browse files Browse the repository at this point in the history
  • Loading branch information
moving-bits committed Aug 17, 2024
1 parent 93fc62f commit df6fff9
Show file tree
Hide file tree
Showing 148 changed files with 0 additions and 2,277 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import cgeo.geocaching.maps.mapsforge.v6.layers.RouteLayer;
import cgeo.geocaching.maps.mapsforge.v6.layers.TapHandlerLayer;
import cgeo.geocaching.maps.mapsforge.v6.layers.TrackLayer;
import cgeo.geocaching.maps.mapsforge.v6.legend.RenderThemeLegend;
import cgeo.geocaching.maps.routing.Routing;
import cgeo.geocaching.maps.routing.RoutingMode;
import cgeo.geocaching.models.Geocache;
Expand Down Expand Up @@ -432,7 +431,6 @@ public boolean onPrepareOptionsMenu(@NonNull final Menu menu) {
final boolean tileLayerHasThemes = tileLayerHasThemes();
menu.findItem(R.id.menu_theme_mode).setVisible(tileLayerHasThemes);
menu.findItem(R.id.menu_theme_options).setVisible(tileLayerHasThemes);
menu.findItem(R.id.menu_theme_legend).setVisible(tileLayerHasThemes && RenderThemeLegend.supportsLegend());

menu.findItem(R.id.menu_as_list).setVisible(!caches.isDownloading() && caches.getVisibleCachesCount() > 1);

Expand Down Expand Up @@ -492,8 +490,6 @@ public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
this.renderThemeHelper.selectMapTheme(this.tileLayer, this.tileCache);
} else if (id == R.id.menu_theme_options) {
this.renderThemeHelper.selectMapThemeOptions();
} else if (id == R.id.menu_theme_legend) {
RenderThemeLegend.showLegend(this, this.renderThemeHelper, mapView.getModel().displayModel);
} else if (id == R.id.menu_as_list) {
CacheListActivity.startActivityMap(this, new SearchResult(caches.getVisibleCacheGeocodes()));
ActivityMixin.overrideTransitionToFade(this);
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit df6fff9

Please sign in to comment.