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