Once we added a call to updateUI in onResume(), should we have removed our call to updateUI() in onCreateView()?


#1

If it’s guaranteed that onResume() is called after onCreateView() every time, then it results in us calling updateUI() twice every time our fragment is created.

Is it guaranteed? Is there ever a time that a fragment’s view could be recreated without onResume() being called afterwards?

Thanks!


#2

Yes we can.
As far as I know, updateUI() in the onCreateView() is redundant.