Came to your project via Stackoverflow, and found a bug. You're overriding onRangeMoved(), but you're delegating to notifyItemMoved(). This is only correct if itemCount is 1.
@Override
public void onItemRangeMoved(ObservableList sender, int fromPosition, int toPosition, int itemCount)
{
RecyclerView.Adapter adapter = adapterReference.get();
if (adapter != null)
{
adapter.notifyItemMoved(fromPosition, toPosition);
}
}
Came to your project via Stackoverflow, and found a bug. You're overriding
onRangeMoved()
, but you're delegating tonotifyItemMoved()
. This is only correct ifitemCount
is 1.