Skip to content

Q: Handling network response during screen rotation #208

Open
@youfacepalm

Description

@youfacepalm

Hi. I would like to get your input on how to handle network responses during screen orientation changes. The scenario as follows;

  1. Network request initiated after setView() is called in a Fragment's onViewCreated() method
  2. User rotates the device. onDestroy() gets called which in turn would nullify view interface in Presenter class
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions