mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-04-06 10:47:01 +00:00
fixed image loading bug
This commit is contained in:
parent
0dbf2a347f
commit
8fb1fd3602
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user