Open
Description
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.
Thank you