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());
}
}
Aggregations