force ViewPager to call getItem when going up the backstack
问题 I'm trying to create an Android application which contains a single activity with a container and a navigation drawer. The initialy empty container loads fragments which has a ViewPager inside a tab layout in which I load a frgment with a FragmentTransaction : public static void replaceFragmentInContainer(FragmentManager fragmentManager, Fragment fragmentToShow, boolean addToBackStack) { FragmentTransaction transaction = fragmentManager.beginTransaction(); if (addToBackStack) { transaction