Android Performance — Lazy inflating Fragment with ViewStub
Raymond Chan

I added:

public void 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. 
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.