Search in sources :

Example 26 with BasePresenter

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

the class MediaBrowseActivity method onCreate.

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

Example 27 with BasePresenter

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

the class MediaListActivity method onCreate.

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

Example 28 with BasePresenter

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

the class MessageActivity 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 29 with BasePresenter

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

the class ProfileActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    binding = DataBindingUtil.setContentView(this, R.layout.activity_profile);
    setPresenter(new BasePresenter(getApplicationContext()));
    ButterKnife.bind(this);
    setSupportActionBar(toolbar);
    disableToolbarTitle();
    setViewModel(true);
    if (getIntent().hasExtra(KeyUtil.arg_id))
        id = getIntent().getLongExtra(KeyUtil.arg_id, -1);
    else if (getIntent().hasExtra(KeyUtil.arg_userName))
        userName = getIntent().getStringExtra(KeyUtil.arg_userName);
}
Also used : BasePresenter(com.mxt.anitrend.presenter.base.BasePresenter)

Example 30 with BasePresenter

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

the class StudioActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_frame_generic);
    ButterKnife.bind(this);
    setSupportActionBar(toolbar);
    setViewModel(true);
    setPresenter(new BasePresenter(this));
    if (getIntent().hasExtra(KeyUtil.arg_id))
        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