Search in sources :

Example 1 with SubscriptionsAdapter

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

the class SubscriptionFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    subscriptionAdapter = new SubscriptionsAdapter((MainActivity) getActivity(), itemAccess);
    subscriptionGridLayout.setAdapter(subscriptionAdapter);
    loadSubscriptions();
    subscriptionGridLayout.setOnItemClickListener(subscriptionAdapter);
    if (getActivity() instanceof MainActivity) {
        ((MainActivity) getActivity()).getSupportActionBar().setTitle(R.string.subscriptions_label);
    }
    EventDistributor.getInstance().register(contentUpdate);
}
Also used : SubscriptionsAdapter(de.danoeh.antennapod.adapter.SubscriptionsAdapter) MainActivity(de.danoeh.antennapod.activity.MainActivity)

Aggregations

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