diff --git a/OsmAnd/res/layout/map_marker_item_header.xml b/OsmAnd/res/layout/map_marker_item_header.xml index 86463f5c64..c3ac494423 100644 --- a/OsmAnd/res/layout/map_marker_item_header.xml +++ b/OsmAnd/res/layout/map_marker_item_header.xml @@ -6,7 +6,15 @@ android:layout_height="wrap_content" android:descendantFocusability="blocksDescendants"> - + + + 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); LatLon markerLatLon = new LatLon(marker.getLatitude(), marker.getLongitude()); DashLocationFragment.updateLocationView(useCenter, location, @@ -346,6 +346,8 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter