Answer the question
In order to leave comments, you need to log in
How not to lose an asynchronous retrofit request when the screen is flipped?
There is an activity, I execute a request in it, while the request is being executed, the progress bar is visible, then at the end of the callback I make it invisible. How to not reload the data during the flip (ie the progressbar should be immediately invisible) and not create a new request if the flip was during the execution of the request?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question