Answers for "Pop fragment from backstack"

0

Pop fragment from backstack

getActivity().getSupportFragmentManager().popBackStack();
Posted by: Guest on February-18-2021
0

Pop fragment from backstack

FragmentManager fm = getSupportFragmentManager();

    if (fm.getBackStackEntryCount() > 0) {

        fm.popBackStack();

    }else {
        super.onBackPressed();
    }
Posted by: Guest on February-18-2021

Code answers related to "Pop fragment from backstack"

Browse Popular Code Answers by Language