don't load video thumbs if flavor images are disabled

This commit is contained in:
Andrew Dolgov 2015-07-10 15:58:30 +03:00
parent 8c177bdbac
commit 380237e441

View File

@ -1035,7 +1035,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
boolean videoFound = false;
if (article.articleDoc != null && holder.flavorVideoPlayView != null) {
if (showFlavorImage && article.articleDoc != null && holder.flavorVideoPlayView != null) {
Element video = article.articleDoc.select("video").first();
Element ytframe = article.articleDoc.select("iframe[src*=youtube.com/embed/]").first();