Extract string resource

This commit is contained in:
PaulStets 2018-04-28 15:19:01 +03:00
parent 8bcfa76af5
commit 992f68dcb7

View file

@ -110,7 +110,7 @@ public class WikivoyageArticleNavigationFragment extends MenuBottomSheetDialogFr
public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {
WikivoyageSearchResult articleItem = (WikivoyageSearchResult) listAdapter.getGroup(groupPosition);
if (articleItem.getCityId() == -1) {
Toast.makeText(getContext(), "Article not found.", Toast.LENGTH_LONG).show();
Toast.makeText(getContext(), R.string.wiki_article_not_found, Toast.LENGTH_LONG).show();
} else {
sendResults(articleItem.getCityId());
dismiss();