Fix swipe in groups
This commit is contained in:
parent
e5bb69053b
commit
75cc6162b7
1 changed files with 3 additions and 2 deletions
|
@ -83,8 +83,9 @@ public class MapMarkersGroupsFragment extends Fragment implements OsmAndCompassL
|
|||
@Override
|
||||
public int getSwipeDirs(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {
|
||||
boolean markerViewHolder = viewHolder instanceof MapMarkerItemViewHolder;
|
||||
if (markerViewHolder) {
|
||||
MapMarker marker = (MapMarker) adapter.getItem(viewHolder.getAdapterPosition());
|
||||
int pos = viewHolder.getAdapterPosition();
|
||||
if (markerViewHolder && pos != -1) {
|
||||
MapMarker marker = (MapMarker) adapter.getItem(pos);
|
||||
if (marker.history) {
|
||||
return ItemTouchHelper.RIGHT;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue