Fix possibility to select marker when favorites hidden

This commit is contained in:
Dima-1 2020-01-08 17:43:43 +02:00
parent 4543e45bad
commit e5822cdf8e

View file

@ -546,7 +546,8 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi
if (!unknownLocation && selectMarkerOnSingleTap) {
o.add(marker);
} else {
if (isMarkerOnFavorite(marker) || isMarkerOnWaypoint(marker)) {
if (isMarkerOnFavorite(marker) && app.getSettings().SHOW_FAVORITES.get()
|| isMarkerOnWaypoint(marker) && app.getSettings().SHOW_WPT.get()) {
continue;
}
Amenity mapObj = getMapObjectByMarker(marker);