Merge pull request #11115 from osmandapp/Wrong-POI-Multiselection

Wrong POI Multiselection after 1 selection
This commit is contained in:
Vitaliy 2021-03-11 20:58:02 +02:00 committed by GitHub
commit c352a04883
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,7 +193,8 @@ final class MapLayerMenuListener extends OnRowItemClick {
adapter.notifyDataSetChanged(); adapter.notifyDataSetChanged();
} }
}; };
if (poiFiltersHelper.isShowingAnyPoi(wiki)) { boolean isMultichoose = poiFiltersHelper.getSelectedPoiFilters(wiki).size() > 1;
if (isMultichoose) {
mapActivity.getMapLayers().showMultichoicePoiFilterDialog(mapActivity.getMapView(), mapActivity.getMapLayers().showMultichoicePoiFilterDialog(mapActivity.getMapView(),
dismissListener); dismissListener);
} else { } else {