@Test public void should_automatically_select_my_schedule_when_starting_the_app() { presenter.onPostCreate(null); verify(view).showFragment(any(SchedulePagerFragment.class)); }
@Override public void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); if (savedInstanceState == null) { onNavigationItemSelected(R.id.drawer_nav_schedule); } }
DrawerPresenter extends BaseActivityPresenter<DrawerMvp.View> implements DrawerMvp.Presenter { @Override public void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); if (savedInstanceState == null) { onNavigationItemSelected(R.id.drawer_nav_schedule); } } }
DrawerPresenter extends BaseActivityPresenter<DrawerMvp.View> implements DrawerMvp.Presenter { @Override public void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); if (savedInstanceState == null) { onNavigationItemSelected(R.id.drawer_nav_schedule); } } DrawerPresenter(DrawerMvp.View view); }
DrawerPresenter extends BaseActivityPresenter<DrawerMvp.View> implements DrawerMvp.Presenter { @Override public void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); if (savedInstanceState == null) { onNavigationItemSelected(R.id.drawer_nav_schedule); } } DrawerPresenter(DrawerMvp.View view); @Override void onPostCreate(Bundle savedInstanceState); @Override void onRestoreInstanceState(Bundle savedInstanceState); @Override void onNavigationItemSelected(@IdRes int itemId); @Override boolean onBackPressed(); }
DrawerPresenter extends BaseActivityPresenter<DrawerMvp.View> implements DrawerMvp.Presenter { @Override public void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); if (savedInstanceState == null) { onNavigationItemSelected(R.id.drawer_nav_schedule); } } DrawerPresenter(DrawerMvp.View view); @Override void onPostCreate(Bundle savedInstanceState); @Override void onRestoreInstanceState(Bundle savedInstanceState); @Override void onNavigationItemSelected(@IdRes int itemId); @Override boolean onBackPressed();  }