diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-07-05 21:12:50 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-07-05 21:12:50 +0200 |
commit | 16caf87e2b01a288420d655e2cd151f7cf576749 (patch) | |
tree | 5d74111ac58f6890c5657128af78f718e084fc34 /src/de/danoeh/antennapod/fragment | |
parent | 4f8c934595f5d2aa01b642d7d4489de3ad25df39 (diff) | |
download | AntennaPod-16caf87e2b01a288420d655e2cd151f7cf576749.zip |
Reduced number of lint warnings
Diffstat (limited to 'src/de/danoeh/antennapod/fragment')
-rw-r--r-- | src/de/danoeh/antennapod/fragment/ItemlistFragment.java | 5 |
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); |