Encountered an issue with the back button rendering my Fragment container meant to hold two fragments for a FragmentStatePagerAdapter blank when returning.
In the onCreateView() of the container Fragment where the adapter is being set, rather than previously calling getSupportFragmentManager() in this app that will be targeting down to SDK 14, changing this to getChildFragmentManager() fixed the issue. Now, when returning from a back button press, everything loads fine. |
AuthorExploring Android and mobile web design, security, and development. Archives
March 2021
Categories |