fixed image loading bug

This commit is contained in:
Christian Schabesberger 2016-03-08 01:24:45 +01:00
parent 0dbf2a347f
commit 8fb1fd3602
1 changed files with 1 additions and 3 deletions

View File

@ -89,13 +89,11 @@ class VideoInfoItemViewCreator {
holder.itemUploadDateView.setText(info.upload_date+"");
}
holder.itemThumbnailView.setImageResource(R.drawable.dummy_thumbnail);
if(info.thumbnail_url != null && !info.thumbnail_url.isEmpty()) {
imageLoader.displayImage(info.thumbnail_url, holder.itemThumbnailView, displayImageOptions);
} else {
holder.itemThumbnailView.setImageResource(R.drawable.dummy_thumbnail);
}
return convertView;
}