change getImageUrl to getThumbImageUrl

This commit is contained in:
Chumva 2018-04-03 19:06:52 +03:00
parent 42475b1956
commit 6647232d91

View file

@ -155,8 +155,7 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen
String articleTitle = article.getImageTitle(); String articleTitle = article.getImageTitle();
if (!TextUtils.isEmpty(articleTitle)) { if (!TextUtils.isEmpty(articleTitle)) {
String url = WikivoyageArticle.getImageUrl(articleTitle); String url = WikivoyageArticle.getThumbImageUrl(articleTitle);
// sb.append("<img class=\"title-image\" src=\"").append(url).append("\"/>");
sb.append("<div class=\"title-image\" style=\"background-image: url(").append(url).append(")\"></div>"); sb.append("<div class=\"title-image\" style=\"background-image: url(").append(url).append(")\"></div>");
} }
sb.append("<div class=\"main\">\n"); sb.append("<div class=\"main\">\n");