Search in sources :

Example 1 with SubscriptionsRecyclerAdapter

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

the class SubscriptionFragment method onViewCreated.

@Override
public void onViewCreated(@NonNull View v, Bundle savedInstanceState) {
    super.onViewCreated(v, savedInstanceState);
    subscriptionAdapter = new SubscriptionsRecyclerAdapter((MainActivity) getActivity());
    subscriptionAdapter.setOnSelectModeListener(this);
    subscriptionRecycler.setAdapter(subscriptionAdapter);
    setupEmptyView();
    subscriptionAddButton.setOnClickListener(view -> {
        if (getActivity() instanceof MainActivity) {
            ((MainActivity) getActivity()).loadChildFragment(new AddFeedFragment());
        }
    });
}
Also used : SubscriptionsRecyclerAdapter(de.danoeh.antennapod.adapter.SubscriptionsRecyclerAdapter) MainActivity(de.danoeh.antennapod.activity.MainActivity)

Aggregations

MainActivity (de.danoeh.antennapod.activity.MainActivity)1 SubscriptionsRecyclerAdapter (de.danoeh.antennapod.adapter.SubscriptionsRecyclerAdapter)1