Search in sources :

Example 1 with AllEpisodesRecycleAdapter

use of de.danoeh.antennapod.adapter.AllEpisodesRecycleAdapter in project AntennaPod by AntennaPod.

the class AllEpisodesFragment method onFragmentLoaded.

private void onFragmentLoaded() {
    if (listAdapter == null) {
        MainActivity mainActivity = (MainActivity) getActivity();
        listAdapter = new AllEpisodesRecycleAdapter(mainActivity, itemAccess, new DefaultActionButtonCallback(mainActivity), showOnlyNewEpisodes());
        listAdapter.setHasStableIds(true);
        recyclerView.setAdapter(listAdapter);
    }
    listAdapter.notifyDataSetChanged();
    restoreScrollPosition();
    getActivity().supportInvalidateOptionsMenu();
    updateShowOnlyEpisodesListViewState();
}
Also used : DefaultActionButtonCallback(de.danoeh.antennapod.adapter.DefaultActionButtonCallback) AllEpisodesRecycleAdapter(de.danoeh.antennapod.adapter.AllEpisodesRecycleAdapter) MainActivity(de.danoeh.antennapod.activity.MainActivity)

Aggregations

MainActivity (de.danoeh.antennapod.activity.MainActivity)1 AllEpisodesRecycleAdapter (de.danoeh.antennapod.adapter.AllEpisodesRecycleAdapter)1 DefaultActionButtonCallback (de.danoeh.antennapod.adapter.DefaultActionButtonCallback)1