@Override protected int onNextStep() { // TODO BaseFragment f = TutorialCurrencyFragment.newInstance(); getChildFragmentManager() .beginTransaction() .replace(R.id.container_V, f, FRAGMENT_CURRENT) .addToBackStack(null) .commit(); return 1; }
@Override protected void restoreOrInit(long itemId, Bundle savedInstanceState) { if (getChildFragmentManager().findFragmentByTag(FRAGMENT_CURRENT) == null) { BaseFragment f = getStepsCount() == 2 ? TutorialLanguageFragment.newInstance() : TutorialCurrencyFragment.newInstance(); getChildFragmentManager() .beginTransaction() .replace(R.id.container_V, f, FRAGMENT_CURRENT) .commit(); } }