@Test @SdkSuppress(minSdkVersion = Build.VERSION_CODES.P) public void nonConfigStopSavingFragment() throws Throwable { FragmentActivity activity = FragmentActivityUtils.recreateActivity(mActivityRule, mActivityRule.getActivity()); assertThat(activity.getSupportFragmentManager().getFragments().size(), is(1)); }
List<Fragment> getFragments() { return mFragments; }
FragmentManagerNonConfig { List<Fragment> getFragments() { return mFragments; } }
FragmentManagerNonConfig { List<Fragment> getFragments() { return mFragments; } FragmentManagerNonConfig(List<Fragment> fragments,
            List<FragmentManagerNonConfig> childNonConfigs,
            List<ViewModelStore> viewModelStores); }
FragmentManagerNonConfig { List<Fragment> getFragments() { return mFragments; } FragmentManagerNonConfig(List<Fragment> fragments,
            List<FragmentManagerNonConfig> childNonConfigs,
            List<ViewModelStore> viewModelStores);  }
FragmentManagerNonConfig { List<Fragment> getFragments() { return mFragments; } FragmentManagerNonConfig(List<Fragment> fragments,
            List<FragmentManagerNonConfig> childNonConfigs,
            List<ViewModelStore> viewModelStores);   }