Merge pull request #5199 from osmandapp/WikivoyageImprovements

added title of article
This commit is contained in:
Alexander Sytnyk 2018-04-03 10:54:34 +03:00 committed by GitHub
commit 45e0b1073a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,8 +140,8 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen
if (article == null) { if (article == null) {
return; return;
} }
String articleTitle = "<h1>" + article.getTitle() + "</h1>";
String content = HEADER_INNER + article.getContent() + FOOTER_INNER; String content = HEADER_INNER + articleTitle + article.getContent() + FOOTER_INNER;
contentWebView.loadDataWithBaseURL(getBaseUrl(), content, "text/html", "UTF-8", null); contentWebView.loadDataWithBaseURL(getBaseUrl(), content, "text/html", "UTF-8", null);
} }