Search in sources :

Example 6 with VideoCardPresenter

use of com.liskovsoft.smartyoutubetv2.tv.presenter.VideoCardPresenter in project SmartTubeNext by yuliskov.

the class MultiVideoGridFragment method onCreate.

@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mMainPresenter = getMainPresenter();
    mCardPresenter1 = new ChannelCardPresenter();
    mCardPresenter2 = new VideoCardPresenter();
    mBackgroundManager = ((LeanbackActivity) getActivity()).getBackgroundManager();
    mVideoGridScale = MainUIData.instance(getActivity()).getVideoGridScale();
    setupAdapter();
    setupEventListeners();
    applyPendingUpdates();
    if (getMainFragmentAdapter().getFragmentHost() != null) {
        getMainFragmentAdapter().getFragmentHost().notifyDataReady(getMainFragmentAdapter());
    }
}
Also used : ChannelCardPresenter(com.liskovsoft.smartyoutubetv2.tv.presenter.ChannelCardPresenter) VideoCardPresenter(com.liskovsoft.smartyoutubetv2.tv.presenter.VideoCardPresenter)

Aggregations

VideoCardPresenter (com.liskovsoft.smartyoutubetv2.tv.presenter.VideoCardPresenter)6 ListRowPresenter (androidx.leanback.widget.ListRowPresenter)2 ActivityNotFoundException (android.content.ActivityNotFoundException)1 ArrayObjectAdapter (androidx.leanback.widget.ArrayObjectAdapter)1 RowPresenter (androidx.leanback.widget.RowPresenter)1 ViewHolder (androidx.leanback.widget.RowPresenter.ViewHolder)1 SpeechRecognitionCallback (androidx.leanback.widget.SpeechRecognitionCallback)1 MediaServiceSearchTagProvider (com.liskovsoft.smartyoutubetv2.common.app.models.search.MediaServiceSearchTagProvider)1 ChannelCardPresenter (com.liskovsoft.smartyoutubetv2.tv.presenter.ChannelCardPresenter)1 CustomListRowPresenter (com.liskovsoft.smartyoutubetv2.tv.presenter.CustomListRowPresenter)1 ProgressBarManager (com.liskovsoft.smartyoutubetv2.tv.ui.mod.leanback.misc.ProgressBarManager)1