Fix some small warnings
This commit is contained in:
parent
8ccfa46a29
commit
949c0f4eac
2 changed files with 5 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -32,7 +32,7 @@ public class SavedArticlesRvAdapter extends RecyclerView.Adapter<RecyclerView.Vi
|
|||
private final Drawable readIcon;
|
||||
private final Drawable deleteIcon;
|
||||
|
||||
public SavedArticlesRvAdapter(OsmandApplication app) {
|
||||
SavedArticlesRvAdapter(OsmandApplication app) {
|
||||
this.app = app;
|
||||
List<WikivoyageArticle> savedArticles = WikivoyageLocalDataHelper.getInstance(app).getSavedArticles();
|
||||
if (!savedArticles.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue