Search in sources :

Example 1 with MediaPresenter

use of com.mxt.anitrend.presenter.fragment.MediaPresenter in project anitrend-app by AniTrend.

the class MediaOverviewFragment method onCreate.

@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);
    }
    isMenuDisabled = true;
    mColumnSize = R.integer.grid_list_x2;
    setPresenter(new MediaPresenter(getContext()));
    setViewModel(true);
}
Also used : MediaPresenter(com.mxt.anitrend.presenter.fragment.MediaPresenter)

Example 2 with MediaPresenter

use of com.mxt.anitrend.presenter.fragment.MediaPresenter 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)

Example 3 with MediaPresenter

use of com.mxt.anitrend.presenter.fragment.MediaPresenter in project anitrend-app by AniTrend.

the class MediaStatsFragment method onCreate.

@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);
    }
    isMenuDisabled = true;
    mColumnSize = R.integer.grid_list_x2;
    setPresenter(new MediaPresenter(getContext()));
    setViewModel(true);
}
Also used : MediaPresenter(com.mxt.anitrend.presenter.fragment.MediaPresenter)

Example 4 with MediaPresenter

use of com.mxt.anitrend.presenter.fragment.MediaPresenter in project anitrend-app by AniTrend.

the class MediaFormatFragment 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) {
        requestType = getArguments().getInt(KeyUtil.arg_request_type);
        id = getArguments().getLong(KeyUtil.arg_id);
        onList = (Boolean) getArguments().getSerializable(KeyUtil.arg_onList);
        mediaType = getArguments().getString(KeyUtil.arg_mediaType);
    }
    mColumnSize = R.integer.grid_giphy_x3;
    isPager = true;
    mAdapter = new GroupSeriesAdapter(getContext());
    setPresenter(new MediaPresenter(getContext()));
    setViewModel(true);
}
Also used : GroupSeriesAdapter(com.mxt.anitrend.adapter.recycler.group.GroupSeriesAdapter) MediaPresenter(com.mxt.anitrend.presenter.fragment.MediaPresenter)

Example 5 with MediaPresenter

use of com.mxt.anitrend.presenter.fragment.MediaPresenter in project anitrend-app by AniTrend.

the class MediaStaffRoleFragment 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) {
        id = getArguments().getLong(KeyUtil.arg_id);
        onList = (Boolean) getArguments().getSerializable(KeyUtil.arg_onList);
    }
    mColumnSize = R.integer.grid_giphy_x3;
    isPager = true;
    mAdapter = new GroupSeriesAdapter(getContext());
    setPresenter(new MediaPresenter(getContext()));
    setViewModel(true);
}
Also used : GroupSeriesAdapter(com.mxt.anitrend.adapter.recycler.group.GroupSeriesAdapter) MediaPresenter(com.mxt.anitrend.presenter.fragment.MediaPresenter)

Aggregations

MediaPresenter (com.mxt.anitrend.presenter.fragment.MediaPresenter)15 GroupSeriesAdapter (com.mxt.anitrend.adapter.recycler.group.GroupSeriesAdapter)4 MediaAdapter (com.mxt.anitrend.adapter.recycler.index.MediaAdapter)2 Intent (android.content.Intent)1 View (android.view.View)1 GroupActorAdapter (com.mxt.anitrend.adapter.recycler.group.GroupActorAdapter)1 GroupCharacterAdapter (com.mxt.anitrend.adapter.recycler.group.GroupCharacterAdapter)1 GroupCharacterStaffAdapter (com.mxt.anitrend.adapter.recycler.group.GroupCharacterStaffAdapter)1 GroupStaffRoleAdapter (com.mxt.anitrend.adapter.recycler.group.GroupStaffRoleAdapter)1 MediaListAdapter (com.mxt.anitrend.adapter.recycler.index.MediaListAdapter)1 MediaBase (com.mxt.anitrend.model.entity.base.MediaBase)1 RecyclerItem (com.mxt.anitrend.model.entity.group.RecyclerItem)1 MediaBrowseUtil (com.mxt.anitrend.util.media.MediaBrowseUtil)1 MediaActivity (com.mxt.anitrend.view.activity.detail.MediaActivity)1 QueryContainerBuilder (io.github.wax911.library.model.request.QueryContainerBuilder)1