fragmentManager = getSupportFragmentManager() secStepPayServiceFragment = getSupportFragmentManager().findFragmentByTag("second") as SecStepPayServiceFragment if (secStepPayServiceFragment == null) { secStepPayServiceFragment = SecStepPayServiceFragment.newInstance(debt.toString(),"") fragmentTransaction.replace(R.id.fragment_container, secStepPayServiceFragment, "second") fragmentTransaction.addToBackStack("second") fragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN) fragmentTransaction.commit() }