From 795ec629fd47cf30c5f526b180023575544ed068 Mon Sep 17 00:00:00 2001 From: PaulStets Date: Sat, 28 Apr 2018 15:22:25 +0300 Subject: [PATCH] Small refactoring --- .../wikivoyage/article/WikivoyageArticleNavigationFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleNavigationFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleNavigationFragment.java index 79386785a7..5cd8d6bce3 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleNavigationFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleNavigationFragment.java @@ -109,7 +109,7 @@ public class WikivoyageArticleNavigationFragment extends MenuBottomSheetDialogFr @Override public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) { WikivoyageSearchResult articleItem = (WikivoyageSearchResult) listAdapter.getGroup(groupPosition); - if (articleItem.getCityId() == -1) { + if (articleItem.getCityId() == UNDEFINED) { Toast.makeText(getContext(), R.string.wiki_article_not_found, Toast.LENGTH_LONG).show(); } else { sendResults(articleItem.getCityId());