Open gmm932 opened 7 years ago
Bug in SwipeItemMangerImpl.java at Single mode.
Produce:
Result: Item B will lose open state.
Reason: Item B may open earlier than item A will close. So in line 189 item B will invalidate mOpenPosition var.
Fix:
Add if (mOpenPosition == position)
in line 188
public void onClose(SwipeLayout layout) { if (mode == Attributes.Mode.Multiple) { mOpenPositions.remove(position); } else if (mOpenPosition == position) { mOpenPosition = INVALID_POSITION; } }
opened when I scroll out of window and back closed itself