Hi Miquel Beltran .
Bulu
11

Hi Bulu! Configuration changes or just activity restarts are not handled differently in MVP than with other cases. My approach is to try to have stateless presenters, so I don’t have to worry about it. If not, what I do is passing the Presenter data as a Bundle to the Views onSavedInstanceState method.

Take a look at this Presenter from an open source project I am working on. https://github.com/miquelbeltran/android-discogsbrowser/blob/master/app/src/main/java/work/beltran/discogsbrowser/app/base/BasePresenterForAdapter.java there I have the getStatus and loadStatus methods that handle that.

Seems like a topic interesting enough for an article. Thanks for the inspiration!