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) {
|
boolean isLastChild, View convertView, ViewGroup parent) {
|
||||||
String childText = (String) getChild(groupPosition, childPosition);
|
String childText = (String) getChild(groupPosition, childPosition);
|
||||||
if (convertView == null) {
|
if (convertView == null) {
|
||||||
LayoutInflater infalInflater = (LayoutInflater) this.context
|
convertView = LayoutInflater.from(context)
|
||||||
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
.inflate(R.layout.wikivoyage_contents_list_item, parent, false);
|
||||||
convertView = infalInflater.inflate(R.layout.wikivoyage_contents_list_item, parent, false);
|
|
||||||
}
|
}
|
||||||
TextView txtListChild = (TextView) convertView.findViewById(R.id.item_label);
|
TextView txtListChild = (TextView) convertView.findViewById(R.id.item_label);
|
||||||
txtListChild.setText(childText);
|
txtListChild.setText(childText);
|
||||||
|
@ -197,9 +196,8 @@ public class WikivoyageArticleContentsFragment extends MenuBottomSheetDialogFrag
|
||||||
View convertView, ViewGroup parent) {
|
View convertView, ViewGroup parent) {
|
||||||
String headerTitle = (String) getGroup(groupPosition);
|
String headerTitle = (String) getGroup(groupPosition);
|
||||||
if (convertView == null) {
|
if (convertView == null) {
|
||||||
LayoutInflater infalInflater = (LayoutInflater) this.context
|
convertView = LayoutInflater.from(context)
|
||||||
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
.inflate(R.layout.wikivoyage_contents_list_item, parent, false);
|
||||||
convertView = infalInflater.inflate(R.layout.wikivoyage_contents_list_item, parent, false);
|
|
||||||
}
|
}
|
||||||
TextView lblListHeader = (TextView) convertView.findViewById(R.id.item_label);
|
TextView lblListHeader = (TextView) convertView.findViewById(R.id.item_label);
|
||||||
lblListHeader.setText(headerTitle);
|
lblListHeader.setText(headerTitle);
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class SavedArticlesRvAdapter extends RecyclerView.Adapter<RecyclerView.Vi
|
||||||
private final Drawable readIcon;
|
private final Drawable readIcon;
|
||||||
private final Drawable deleteIcon;
|
private final Drawable deleteIcon;
|
||||||
|
|
||||||
public SavedArticlesRvAdapter(OsmandApplication app) {
|
SavedArticlesRvAdapter(OsmandApplication app) {
|
||||||
this.app = app;
|
this.app = app;
|
||||||
List<WikivoyageArticle> savedArticles = WikivoyageLocalDataHelper.getInstance(app).getSavedArticles();
|
List<WikivoyageArticle> savedArticles = WikivoyageLocalDataHelper.getInstance(app).getSavedArticles();
|
||||||
if (!savedArticles.isEmpty()) {
|
if (!savedArticles.isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue