From 5167a076fe8689ac81d7e75d380a2ffc5eeae54f Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 29 May 2018 15:28:38 +0300 Subject: [PATCH] fix check for articleId --- .../plus/wikivoyage/explore/WikivoyageExploreActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/WikivoyageExploreActivity.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/WikivoyageExploreActivity.java index ada5f32dc5..de11593ba1 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/WikivoyageExploreActivity.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/WikivoyageExploreActivity.java @@ -199,7 +199,7 @@ public class WikivoyageExploreActivity extends TabActivity implements DownloadEv String selectedLang = data.getQueryParameter("lang"); if (!Algorithms.isEmpty(title) && !Algorithms.isEmpty(selectedLang)) { long articleId = app.getTravelDbHelper().getArticleId(title, selectedLang); - if (articleId != -1) { + if (articleId != 0) { WikivoyageArticleDialogFragment.showInstance(app, getSupportFragmentManager(), articleId, selectedLang); } }