add string articleTitle

This commit is contained in:
Chumva 2018-04-03 10:47:17 +03:00
parent 76ea02f6cf
commit 7e9c5c1265

View file

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