How to Disable drawer in fragment and back back to correct fragment
I have a main Activity with a Fragment layout. The drawer has 3 option: Fragment[1], Fragment[2], Fragment[3]. Inside Fragment[2] and Fragment[3] is one button. This button open other fragment. Fragment[4]. I want Fragment[4] without drawer but with a back button. This is the onClick code in Fragment[2] Fragment fragment = new InstalacionesEncontradasFragment(); Bundle bundle = new Bundle(); bundle.putSerializable("key", this.instalacionesConCategorias); fragment.setArguments(bundle); FragmentManager fragmentManager = getFragmentManager(); FragmentTransaction mFragmentTransaction =