Merge pull request #5203 from osmandapp/WikivoyageImprovements

Wikivoyage improvements
This commit is contained in:
Alexander Sytnyk 2018-04-04 17:14:33 +03:00 committed by GitHub
commit 23e3ab2e14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n" +
"<meta http-equiv=\"cleartype\" content=\"on\" />\n" +
"<link href=\"article_style.css\" type=\"text/css\" rel=\"stylesheet\"/>\n" +
"</head><body>";
"</head><body>\n";
private static final String FOOTER_INNER = "</div></body></html>";
private long cityId = NO_VALUE;
@ -156,7 +156,7 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen
String articleTitle = article.getImageTitle();
if (!TextUtils.isEmpty(articleTitle)) {
String url = WikivoyageArticle.getImageUrl(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=\"main\">\n");
sb.append("<h1>").append(article.getTitle()).append("</h1>");