Fix merge conflicts
This commit is contained in:
parent
08a8281a8c
commit
94919b25a5
2 changed files with 0 additions and 21 deletions
|
@ -47,7 +47,6 @@ import net.osmand.plus.srtmplugin.SRTMPlugin;
|
|||
import net.osmand.plus.transport.TransportLinesMenu;
|
||||
import net.osmand.plus.views.OsmandMapTileView;
|
||||
import net.osmand.plus.views.corenative.NativeCoreContext;
|
||||
import net.osmand.plus.wikipedia.WikipediaPoiMenu;
|
||||
import net.osmand.render.RenderingRuleProperty;
|
||||
import net.osmand.render.RenderingRuleStorageProperties;
|
||||
import net.osmand.render.RenderingRulesStorage;
|
||||
|
@ -173,7 +172,6 @@ public class ConfigureMapMenu {
|
|||
final OsmandApplication app = activity.getMyApplication();
|
||||
final OsmandSettings settings = app.getSettings();
|
||||
final int selectedProfileColorRes = settings.getApplicationMode().getIconColorInfo().getColor(nightMode);
|
||||
final int selectedProfileColor = ContextCompat.getColor(app, selectedProfileColorRes);
|
||||
MapLayerMenuListener l = new MapLayerMenuListener(activity, adapter);
|
||||
adapter.addItem(new ContextMenuItem.ItemBuilder()
|
||||
.setId(SHOW_CATEGORY_ID)
|
||||
|
|
|
@ -8,7 +8,6 @@ import android.widget.CompoundButton;
|
|||
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
|
||||
import net.osmand.AndroidUtils;
|
||||
import net.osmand.CallbackWithObject;
|
||||
import net.osmand.GPXUtilities.GPXFile;
|
||||
import net.osmand.plus.ContextMenuAdapter;
|
||||
|
@ -22,13 +21,11 @@ import net.osmand.plus.R;
|
|||
import net.osmand.plus.activities.MapActivity;
|
||||
import net.osmand.plus.activities.MapActivityLayers;
|
||||
import net.osmand.plus.activities.PluginActivity;
|
||||
import net.osmand.plus.dashboard.DashboardOnMap;
|
||||
import net.osmand.plus.poi.PoiFiltersHelper;
|
||||
import net.osmand.plus.poi.PoiUIFilter;
|
||||
import net.osmand.plus.rastermaps.OsmandRasterMapsPlugin;
|
||||
import net.osmand.plus.settings.backend.OsmandSettings;
|
||||
import net.osmand.plus.transport.TransportLinesMenu;
|
||||
import net.osmand.plus.wikipedia.WikipediaPoiMenu;
|
||||
import net.osmand.util.Algorithms;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -77,10 +74,6 @@ final class MapLayerMenuListener extends OnRowItemClick {
|
|||
} else if (itemId == R.string.layer_gpx_layer && menuAdapter.getItem(pos).getSelected()) {
|
||||
showGpxSelectionDialog(adapter, adapter.getItem(pos));
|
||||
return false;
|
||||
} else if (itemId == R.string.shared_string_wikipedia) {
|
||||
mapActivity.getDashboard().setDashboardVisibility(true, DashboardOnMap.DashboardType.WIKIPEDIA,
|
||||
AndroidUtils.getCenterViewCoordinates(view));
|
||||
return false;
|
||||
} else if (itemId == R.string.rendering_category_transport) {
|
||||
final ContextMenuItem item = adapter.getItem(pos);
|
||||
TransportLinesMenu.showTransportsDialog(mapActivity, new CallbackWithObject<Boolean>() {
|
||||
|
@ -144,18 +137,6 @@ final class MapLayerMenuListener extends OnRowItemClick {
|
|||
} else {
|
||||
showGpxSelectionDialog(adapter, adapter.getItem(pos));
|
||||
}
|
||||
} else if (itemId == R.string.shared_string_wikipedia) {
|
||||
WikipediaPoiMenu.toggleWikipediaPoi(mapActivity, isChecked, new CallbackWithObject<Boolean>() {
|
||||
@Override
|
||||
public boolean processResult(Boolean selected) {
|
||||
item.setSelected(selected);
|
||||
item.setColorRes(selected ? R.color.osmand_orange : ContextMenuItem.INVALID_ID);
|
||||
item.setDescription(selected ?
|
||||
WikipediaPoiMenu.getLanguagesSummary(mapActivity.getMyApplication()) : null);
|
||||
adapter.notifyDataSetChanged();
|
||||
return true;
|
||||
}
|
||||
});
|
||||
} else if (itemId == R.string.rendering_category_transport) {
|
||||
boolean selected = TransportLinesMenu.isShowLines(mapActivity.getMyApplication());
|
||||
TransportLinesMenu.toggleTransportLines(mapActivity, !selected, new CallbackWithObject<Boolean>() {
|
||||
|
|
Loading…
Reference in a new issue