From 8fb1fd36023aba5563d1a84cb5494e0d083eafcb Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Tue, 8 Mar 2016 01:24:45 +0100 Subject: [PATCH] fixed image loading bug --- .../java/org/schabi/newpipe/VideoInfoItemViewCreator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/VideoInfoItemViewCreator.java b/app/src/main/java/org/schabi/newpipe/VideoInfoItemViewCreator.java index d82d18b39..be189e2fb 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoInfoItemViewCreator.java +++ b/app/src/main/java/org/schabi/newpipe/VideoInfoItemViewCreator.java @@ -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; }