diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleContentsFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleContentsFragment.java index f6c2924897..1eead18b61 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleContentsFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/WikivoyageArticleContentsFragment.java @@ -157,9 +157,8 @@ public class WikivoyageArticleContentsFragment extends MenuBottomSheetDialogFrag boolean isLastChild, View convertView, ViewGroup parent) { String childText = (String) getChild(groupPosition, childPosition); if (convertView == null) { - LayoutInflater infalInflater = (LayoutInflater) this.context - .getSystemService(Context.LAYOUT_INFLATER_SERVICE); - convertView = infalInflater.inflate(R.layout.wikivoyage_contents_list_item, parent, false); + convertView = LayoutInflater.from(context) + .inflate(R.layout.wikivoyage_contents_list_item, parent, false); } TextView txtListChild = (TextView) convertView.findViewById(R.id.item_label); txtListChild.setText(childText); @@ -197,9 +196,8 @@ public class WikivoyageArticleContentsFragment extends MenuBottomSheetDialogFrag View convertView, ViewGroup parent) { String headerTitle = (String) getGroup(groupPosition); if (convertView == null) { - LayoutInflater infalInflater = (LayoutInflater) this.context - .getSystemService(Context.LAYOUT_INFLATER_SERVICE); - convertView = infalInflater.inflate(R.layout.wikivoyage_contents_list_item, parent, false); + convertView = LayoutInflater.from(context) + .inflate(R.layout.wikivoyage_contents_list_item, parent, false); } TextView lblListHeader = (TextView) convertView.findViewById(R.id.item_label); lblListHeader.setText(headerTitle); diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/SavedArticlesRvAdapter.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/SavedArticlesRvAdapter.java index 2972d7249d..11aa2fdd45 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/SavedArticlesRvAdapter.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/SavedArticlesRvAdapter.java @@ -32,7 +32,7 @@ public class SavedArticlesRvAdapter extends RecyclerView.Adapter savedArticles = WikivoyageLocalDataHelper.getInstance(app).getSavedArticles(); if (!savedArticles.isEmpty()) {