I am having an issue where I call addToBackStack
on my fragment when replacing it, but when I press back to go back to that fragment, it doesn't go back, it just closes my app.
Fragment fragmentWebView = new MyWebView();
transaction.replace(R.id.content_frame, fragmentWebView);
transaction.addToBackStack(null);
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
transaction.commit();
Am I doing anything wrong here? everything looks fine to me.