You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I would like to get your input on how to handle network responses during screen orientation changes. The scenario as follows;
Network request initiated after setView() is called in a Fragment's onViewCreated() method
User rotates the device. onDestroy() gets called which in turn would nullify view interface in Presenter class
Before onCreatedView() method is called again, response arrive from the network request. In this state, the view interface on Presenter would be null and the response is lost.