summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/fragment
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2014-07-05 21:12:50 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2014-07-05 21:12:50 +0200
commit16caf87e2b01a288420d655e2cd151f7cf576749 (patch)
tree5d74111ac58f6890c5657128af78f718e084fc34 /src/de/danoeh/antennapod/fragment
parent4f8c934595f5d2aa01b642d7d4489de3ad25df39 (diff)
downloadAntennaPod-16caf87e2b01a288420d655e2cd151f7cf576749.zip
Reduced number of lint warnings
Diffstat (limited to 'src/de/danoeh/antennapod/fragment')
-rw-r--r--src/de/danoeh/antennapod/fragment/ItemlistFragment.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/fragment/ItemlistFragment.java b/src/de/danoeh/antennapod/fragment/ItemlistFragment.java
index 5d0b1bec8..bd5d73c36 100644
--- a/src/de/danoeh/antennapod/fragment/ItemlistFragment.java
+++ b/src/de/danoeh/antennapod/fragment/ItemlistFragment.java
@@ -322,10 +322,11 @@ public class ItemlistFragment extends ListFragment {
Log.e(TAG, "Unable to setup listview: listView = null or feed = null");
return;
}
+ ListView lv = getListView();
LayoutInflater inflater = (LayoutInflater)
getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- View header = inflater.inflate(R.layout.feeditemlist_header, null);
- getListView().addHeaderView(header);
+ View header = inflater.inflate(R.layout.feeditemlist_header, lv, false);
+ lv.addHeaderView(header);
TextView txtvTitle = (TextView) header.findViewById(R.id.txtvTitle);
TextView txtvAuthor = (TextView) header.findViewById(R.id.txtvAuthor);