Closed lectricas closed 7 years ago
this may be help you #87
@ml-bright no it don't. That was my aproach before. I'm restarting the restartable, not the entire method. But to show progress bar, I should restart onCreate with the method inside.
just save/restore progressIsShowing
flag into the activity bundle
Hi. I'm using your lib very often, and nucleous/mvp is some sort of skeleton where I should adjust to some constraints. For example what I want is to make some sort of a request loop:
You call a network, if you get an error, you are shown a dialog. If you click tryAgain, you will execute the last network requst again.
network(1) - error - dialog - click tryAgain() - (go first)
What I've made so far is this:
this is the presenter
it works except one thing. I really need my progressBar to be shown every time I run the network request. This is a view thing and I'm not sure where I can put it. Or maybe this approach is wrong and you have suggestions.