Search in sources :

Example 1 with GroupStaffRoleAdapter

use of com.mxt.anitrend.adapter.recycler.group.GroupStaffRoleAdapter in project anitrend-app by AniTrend.

the class MediaStaffFragment method onCreate.

/**
 * Override and set presenter, mColumnSize, and fetch argument/s
 *
 * @param savedInstanceState
 */
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (getArguments() != null) {
        mediaId = getArguments().getLong(KeyUtil.arg_id);
        mediaType = getArguments().getString(KeyUtil.arg_mediaType);
    }
    mColumnSize = R.integer.grid_giphy_x3;
    isPager = true;
    mAdapter = new GroupStaffRoleAdapter(getContext());
    setPresenter(new MediaPresenter(getContext()));
    setViewModel(true);
}
Also used : GroupStaffRoleAdapter(com.mxt.anitrend.adapter.recycler.group.GroupStaffRoleAdapter) MediaPresenter(com.mxt.anitrend.presenter.fragment.MediaPresenter)

Aggregations

GroupStaffRoleAdapter (com.mxt.anitrend.adapter.recycler.group.GroupStaffRoleAdapter)1 MediaPresenter (com.mxt.anitrend.presenter.fragment.MediaPresenter)1