diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersHistoryAdapter.java b/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersHistoryAdapter.java index d6ceea2f96..dc92cbbeeb 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersHistoryAdapter.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersHistoryAdapter.java @@ -154,13 +154,13 @@ public class MapMarkersHistoryAdapter extends RecyclerView.Adapter position + 1 && getItemViewType(position + 1) == HEADER_TYPE) || lastItem) { itemViewHolder.divider.setVisibility(View.GONE); } else { - itemViewHolder.bottomShadow.setVisibility(View.GONE); itemViewHolder.divider.setVisibility(View.VISIBLE); } + itemViewHolder.bottomShadow.setVisibility(lastItem ? View.VISIBLE : View.GONE); } else if (holder instanceof MapMarkerHeaderViewHolder) { final MapMarkerHeaderViewHolder dateViewHolder = (MapMarkerHeaderViewHolder) holder; final Integer dateHeader = (Integer) getItem(position);