diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java index 2f257cec3e..36b8e66774 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleDialogFragment.java @@ -22,6 +22,7 @@ import net.osmand.IndexConstants; import net.osmand.plus.R; import net.osmand.plus.wikivoyage.data.WikivoyageArticle; import net.osmand.plus.wikivoyage.data.WikivoyageSearchResult; +import net.osmand.util.Algorithms; import java.io.File; @@ -140,8 +141,13 @@ public class WikivoyageArticleDialogFragment extends WikivoyageBaseDialogFragmen if (article == null) { return; } + String articleTitle = "

" + article.getTitle() + "

"; - String content = HEADER_INNER + articleTitle + article.getContent() + FOOTER_INNER; + String articleTitleImage = ""; + if (!Algorithms.isEmpty(article.getImageTitle())) { + articleTitleImage = ""; + } + String content = HEADER_INNER + articleTitleImage + articleTitle + article.getContent() + FOOTER_INNER; contentWebView.loadDataWithBaseURL(getBaseUrl(), content, "text/html", "UTF-8", null); }