Code example for List

Methods: addAll

0
    } 
 
    @Override 
    public void onLoadFinished(Loader<List<FeedItem>> listLoader, List<FeedItem> feedItems) {
        mFeedItems = new ArrayList<FeedItem>();
        mFeedItems.addAll(feedItems);
 
        if (mFeedType == ARTICLE_TYPE_FAVORITES) {
            mAdapter = new FavoritesListAdapter(getBaseActivity());
            ((FavoritesListAdapter) mAdapter).fillWithItems(mFeedItems);
        } else { 
            mAdapter = new FeedItemsListAdapter(getBaseActivity());
            ((FeedItemsListAdapter) mAdapter).fillWithItems(mFeedItems);
        } 
        mAdapter.notifyDataSetChanged();
 
        setListAdapter(mAdapter);
    } 
 
    @Override 
    public void onLoaderReset(Loader<List<FeedItem>> listLoader) {