Merge pull request #5199 from osmandapp/WikivoyageImprovements
added title of article
This commit is contained in:
commit
45e0b1073a
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue