Commit 6633c6ec authored by Geoffrey Métais's avatar Geoffrey Métais

Improve video comparison in lists updates

parent b1ca6e51
......@@ -536,7 +536,9 @@ public class VideoListAdapter extends RecyclerView.Adapter<VideoListAdapter.View
@Override
public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) {
return oldList != null && newList != null && oldList.get(oldItemPosition).equals(newList.get(newItemPosition));
MediaWrapper oldItem = oldList.get(oldItemPosition);
MediaWrapper newItem = newList.get(newItemPosition);
return oldList != null && newList != null && oldItem.getType() == newItem.getType() && oldItem.equals(newItem);
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment