Search in sources :

Example 21 with BasePresenter

use of com.mxt.anitrend.presenter.base.BasePresenter in project anitrend-app by AniTrend.

the class BrowseReviewFragment 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)
        mediaType = getArguments().getString(KeyUtil.arg_mediaType);
    isPager = true;
    mColumnSize = R.integer.single_list_x1;
    setPresenter(new BasePresenter(getContext()));
    setViewModel(true);
}
Also used : BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Example 22 with BasePresenter

use of com.mxt.anitrend.presenter.base.BasePresenter in project anitrend-app by AniTrend.

the class NotificationFragment method onCreate.

/**
 * Override and set presenter, mColumnSize, and fetch argument/s
 *
 * @param savedInstanceState
 */
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mColumnSize = R.integer.single_list_x1;
    setInflateMenu(R.menu.shared_menu);
    setPresenter(new BasePresenter(getContext()));
    setViewModel(true);
}
Also used : BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Example 23 with BasePresenter

use of com.mxt.anitrend.presenter.base.BasePresenter in project anitrend-app by AniTrend.

the class ReviewFragment 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.single_list_x1;
    isPager = true;
    setPresenter(new BasePresenter(getContext()));
    setViewModel(true);
}
Also used : BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Example 24 with BasePresenter

use of com.mxt.anitrend.presenter.base.BasePresenter in project anitrend-app by AniTrend.

the class CharacterFavouriteFragment method onCreate.

@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (getArguments() != null)
        userId = getArguments().getLong(KeyUtil.arg_id);
    setPresenter(new BasePresenter(getContext()));
    mColumnSize = R.integer.grid_giphy_x3;
    isPager = true;
    setViewModel(true);
}
Also used : BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Example 25 with BasePresenter

use of com.mxt.anitrend.presenter.base.BasePresenter in project anitrend-app by AniTrend.

the class FavouriteActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_pager_generic);
    ButterKnife.bind(this);
    setSupportActionBar(toolbar);
    setPresenter(new BasePresenter(this));
    setViewModel(true);
}
Also used : BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Aggregations

BasePresenter (com.mxt.anitrend.presenter.base.BasePresenter)39 ActionBarDrawerToggle (android.support.v7.app.ActionBarDrawerToggle)1 CommonPresenter (com.mxt.anitrend.base.custom.presenter.CommonPresenter)1 BaseModel (com.mxt.anitrend.model.api.retro.anilist.BaseModel)1 UserModel (com.mxt.anitrend.model.api.retro.anilist.UserModel)1 Genre (com.mxt.anitrend.model.entity.anilist.Genre)1 ApplicationPref (com.mxt.anitrend.util.ApplicationPref)1 IOException (java.io.IOException)1 List (java.util.List)1