Commit 11aa8a75 authored by Geoffrey Métais's avatar Geoffrey Métais

Check for IndexOutOfBoundsException

parent 8511a01c
......@@ -92,7 +92,9 @@ public class VideoListAdapter extends RecyclerView.Adapter<VideoListAdapter.View
public void onBindViewHolder(ViewHolder holder, int position) {
MediaWrapper media = mVideos.get(position);
MediaWrapper media = getItem(position);
if (media == null)
holder.binding.setVariable(BR.scaleType, ImageView.ScaleType.FIT_CENTER);
fillView(holder, media);
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