Removed unnecessary attribute in FeedlistAdapter
This commit is contained in:
parent
789f78fe41
commit
ca2eefe169
|
@ -30,7 +30,7 @@ public class FeedlistActivity extends SherlockListActivity {
|
|||
super.onCreate(savedInstanceState);
|
||||
|
||||
manager = FeedManager.getInstance();
|
||||
fla = new FeedlistAdapter(this, R.layout.feedlist_item, 0, manager.getFeeds());
|
||||
fla = new FeedlistAdapter(this, 0, manager.getFeeds());
|
||||
setListAdapter(fla);
|
||||
|
||||
}
|
||||
|
|
|
@ -18,12 +18,9 @@ import android.widget.TextView;
|
|||
|
||||
public class FeedlistAdapter extends ArrayAdapter<Feed> {
|
||||
|
||||
int resource;
|
||||
|
||||
public FeedlistAdapter(Context context, int resource,
|
||||
public FeedlistAdapter(Context context,
|
||||
int textViewResourceId, List<Feed> objects) {
|
||||
super(context, resource, textViewResourceId, objects);
|
||||
this.resource = resource;
|
||||
super(context, textViewResourceId, objects);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue