Search in sources :

Example 1 with BasePresenter

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

the class SearchActivity 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)

Example 2 with BasePresenter

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

the class CharacterActivity 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);
    if (getIntent().hasExtra(KeyUtil.arg_id))
        id = getIntent().getLongExtra(KeyUtil.arg_id, -1);
}
Also used : BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Example 3 with BasePresenter

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

the class CommentActivity method onPostCreate.

@Override
protected void onPostCreate(@Nullable Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);
    setPresenter(new BasePresenter(this));
    onActivityReady();
}
Also used : BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Example 4 with BasePresenter

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

the class NotificationActivity method onPostCreate.

@Override
protected void onPostCreate(@Nullable Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);
    setPresenter(new BasePresenter(this));
    onActivityReady();
}
Also used : BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Example 5 with BasePresenter

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

the class StaffActivity 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);
    id = getIntent().getLongExtra(KeyUtil.arg_id, -1);
}
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