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] 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 {