Android Performance — Lazy inflating Fragment with ViewStub
Raymond Chan
588

I added:

@Override
public void onDestroyView()
{
super.onDestroyView();
mHasInflated = false;
}

In a fragmentManager replace setup, for example with a navigationDrawer or bottomNavs this is called but onDetach is not. After onDestroyView is called onCreateView will be called again andit re-inflates the views. 
Thoughts?
Thanks for the article

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.