Quick fix is
class MyFragment extends Fragment {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
setUserVisibleHint(true);
}
And wait for update in safe mode 🙂
More Related Contents:
- How to determine when Fragment becomes visible in ViewPager
- How to implement a ViewPager with different Fragments / Layouts
- OnActivityResult method is deprecated, what is the alternative?
- getActivity() returns null in Fragment function
- IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager
- Dilemma: when to use Fragments vs Activities:
- Why fragments, and when to use fragments instead of activities?
- Activity, AppCompatActivity, FragmentActivity, and ActionBarActivity: When to Use Which?
- Sharing data between fragments using new architecture component ViewModel
- Android. Fragment getActivity() sometimes returns null
- Start an activity from a fragment
- Further understanding setRetainInstance(true)
- Can I use view pager with views (not with fragments)
- How to wrap the height of a ViewPager to the height of its current Fragment?
- Detect ViewPager tab change inside Fragment
- How to set a ViewPager inside a Fragment
- Where/How to getIntent().getExtras() in an Android Fragment? [duplicate]
- When a Fragment is replaced and put in the back stack (or removed) does it stay in memory?
- How to listen for preference changes within a PreferenceFragment?
- Cannot call getSupportFragmentManager() from activity
- ViewPager offscreen page limit
- How to replace a Fragment on button click of that fragment?
- How do you create Preference Activity and Preference Fragment on Android?
- refresh fragment UI from fragmentActivity
- Coordinator Layout with Toolbar in Fragments or Activity
- Why it is not possible to use ViewPager within a Fragment? It actually is
- Replacing ViewPager with Fragment – Then Navigating Back
- Menu like SKOUT and Sliding from One View to Another by touch in Android
- Different tab width for TabLayout
- Android Fragment onCreateView vs. onActivityCreated