From 76ea02f6cf4233d70899f8e29baa96ba2957bc3b Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 3 Apr 2018 10:40:01 +0300 Subject: [PATCH 1/2] added title of article --- .../osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java index 43657aff6e..1d27a44c6b 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java @@ -141,7 +141,7 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen return; } - String content = HEADER_INNER + article.getContent() + FOOTER_INNER; + String content = HEADER_INNER +"

"+article.getTitle()+"

"+ article.getContent() + FOOTER_INNER; contentWebView.loadDataWithBaseURL(getBaseUrl(), content, "text/html", "UTF-8", null); } From 7e9c5c1265cef571e38b41b46061c907db009567 Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 3 Apr 2018 10:47:17 +0300 Subject: [PATCH 2/2] add string articleTitle --- .../plus/wikivoyage/WikivoyageArticleDialogFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java index 1d27a44c6b..2f257cec3e 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java @@ -140,8 +140,8 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen if (article == null) { return; } - - String content = HEADER_INNER +"

"+article.getTitle()+"

"+ article.getContent() + FOOTER_INNER; + String articleTitle = "

" + article.getTitle() + "

"; + String content = HEADER_INNER + articleTitle + article.getContent() + FOOTER_INNER; contentWebView.loadDataWithBaseURL(getBaseUrl(), content, "text/html", "UTF-8", null); }