move less used map layer item below more frequently used items
This commit is contained in:
parent
990e8f6cad
commit
9752222ade
1 changed files with 10 additions and 10 deletions
|
@ -114,14 +114,6 @@ public class ConfigureMapMenu {
|
||||||
if (isChecked) {
|
if (isChecked) {
|
||||||
selectPOILayer(settings);
|
selectPOILayer(settings);
|
||||||
}
|
}
|
||||||
} else if (itemId == R.string.layer_map) {
|
|
||||||
if(OsmandPlugin.getEnabledPlugin(OsmandRasterMapsPlugin.class) == null) {
|
|
||||||
Intent intent = new Intent(ma, PluginActivity.class);
|
|
||||||
intent.putExtra(PluginActivity.EXTRA_PLUGIN_ID, OsmandRasterMapsPlugin.ID);
|
|
||||||
ma.startActivity(intent);
|
|
||||||
} else {
|
|
||||||
ma.getMapLayers().selectMapLayer(ma.getMapView());
|
|
||||||
}
|
|
||||||
} else if (itemId == R.string.layer_amenity_label) {
|
} else if (itemId == R.string.layer_amenity_label) {
|
||||||
settings.SHOW_POI_LABEL.set(isChecked);
|
settings.SHOW_POI_LABEL.set(isChecked);
|
||||||
} else if (itemId == R.string.shared_string_favorites) {
|
} else if (itemId == R.string.shared_string_favorites) {
|
||||||
|
@ -139,6 +131,14 @@ public class ConfigureMapMenu {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
} else if (itemId == R.string.layer_map) {
|
||||||
|
if(OsmandPlugin.getEnabledPlugin(OsmandRasterMapsPlugin.class) == null) {
|
||||||
|
Intent intent = new Intent(ma, PluginActivity.class);
|
||||||
|
intent.putExtra(PluginActivity.EXTRA_PLUGIN_ID, OsmandRasterMapsPlugin.ID);
|
||||||
|
ma.startActivity(intent);
|
||||||
|
} else {
|
||||||
|
ma.getMapLayers().selectMapLayer(ma.getMapView());
|
||||||
|
}
|
||||||
} else if (itemId == R.string.layer_transport_route) {
|
} else if (itemId == R.string.layer_transport_route) {
|
||||||
ma.getMapLayers().getTransportInfoLayer().setVisible(isChecked);
|
ma.getMapLayers().getTransportInfoLayer().setVisible(isChecked);
|
||||||
}
|
}
|
||||||
|
@ -168,8 +168,6 @@ public class ConfigureMapMenu {
|
||||||
// String appMode = " [" + settings.getApplicationMode().toHumanString(view.getApplication()) +"] ";
|
// String appMode = " [" + settings.getApplicationMode().toHumanString(view.getApplication()) +"] ";
|
||||||
adapter.item(R.string.layer_poi).selected(settings.SELECTED_POI_FILTER_FOR_MAP.get() != null ? 1 : 0)
|
adapter.item(R.string.layer_poi).selected(settings.SELECTED_POI_FILTER_FOR_MAP.get() != null ? 1 : 0)
|
||||||
.iconColor(R.drawable.ic_action_info_dark).listen(l).reg();
|
.iconColor(R.drawable.ic_action_info_dark).listen(l).reg();
|
||||||
adapter.item(R.string.layer_map).iconColor(R.drawable.ic_world_globe_dark)
|
|
||||||
.listen(l).reg();
|
|
||||||
adapter.item(R.string.layer_amenity_label).selected(settings.SHOW_POI_LABEL.get() ? 1 : 0)
|
adapter.item(R.string.layer_amenity_label).selected(settings.SHOW_POI_LABEL.get() ? 1 : 0)
|
||||||
.iconColor(R.drawable.ic_action_text_dark).listen(l).reg();
|
.iconColor(R.drawable.ic_action_text_dark).listen(l).reg();
|
||||||
adapter.item(R.string.shared_string_favorites).selected(settings.SHOW_FAVORITES.get() ? 1 : 0)
|
adapter.item(R.string.shared_string_favorites).selected(settings.SHOW_FAVORITES.get() ? 1 : 0)
|
||||||
|
@ -178,6 +176,8 @@ public class ConfigureMapMenu {
|
||||||
app.getSelectedGpxHelper().isShowingAnyGpxFiles() ? 1 : 0)
|
app.getSelectedGpxHelper().isShowingAnyGpxFiles() ? 1 : 0)
|
||||||
.iconColor(R.drawable.ic_action_polygom_dark)
|
.iconColor(R.drawable.ic_action_polygom_dark)
|
||||||
.listen(l).reg();
|
.listen(l).reg();
|
||||||
|
adapter.item(R.string.layer_map).iconColor(R.drawable.ic_world_globe_dark)
|
||||||
|
.listen(l).reg();
|
||||||
if(TransportRouteHelper.getInstance().routeIsCalculated()){
|
if(TransportRouteHelper.getInstance().routeIsCalculated()){
|
||||||
adapter.item(R.string.layer_transport_route).selected(1)
|
adapter.item(R.string.layer_transport_route).selected(1)
|
||||||
.iconColor(R.drawable.ic_action_bus_dark).listen(l).reg();
|
.iconColor(R.drawable.ic_action_bus_dark).listen(l).reg();
|
||||||
|
|
Loading…
Reference in a new issue