Merge pull request #5297 from osmandapp/PaulsBranch

Small refactoring
This commit is contained in:
PaulStets 2018-04-28 15:23:22 +03:00 committed by GitHub
commit 919bd5e4f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());