From e5bb46e88fdd6e65fce42fe2b7377bb6c4cfabb8 Mon Sep 17 00:00:00 2001 From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com> Date: Thu, 11 Mar 2021 18:57:18 +0200 Subject: [PATCH 1/2] Wrong POI Multiselection after 1 selection https://github.com/osmandapp/OsmAnd-Issues/issues/516 --- OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java b/OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java index d3f6fc053d..cb714baad1 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java @@ -193,7 +193,8 @@ final class MapLayerMenuListener extends OnRowItemClick { adapter.notifyDataSetChanged(); } }; - if (poiFiltersHelper.isShowingAnyPoi(wiki)) { + boolean isCategoryMultichoose = poiFiltersHelper.getSelectedPoiFilters(wiki).size() > 1; + if (isCategoryMultichoose) { mapActivity.getMapLayers().showMultichoicePoiFilterDialog(mapActivity.getMapView(), dismissListener); } else { From b53e8efd14c0164cff51b5a8a51444a676a16f8a Mon Sep 17 00:00:00 2001 From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com> Date: Thu, 11 Mar 2021 19:07:07 +0200 Subject: [PATCH 2/2] Rename --- OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java b/OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java index cb714baad1..6064dad7df 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/MapLayerMenuListener.java @@ -193,8 +193,8 @@ final class MapLayerMenuListener extends OnRowItemClick { adapter.notifyDataSetChanged(); } }; - boolean isCategoryMultichoose = poiFiltersHelper.getSelectedPoiFilters(wiki).size() > 1; - if (isCategoryMultichoose) { + boolean isMultichoose = poiFiltersHelper.getSelectedPoiFilters(wiki).size() > 1; + if (isMultichoose) { mapActivity.getMapLayers().showMultichoicePoiFilterDialog(mapActivity.getMapView(), dismissListener); } else {