R
R
Ryabos2017-02-06 19:31:54
Android
Ryabos, 2017-02-06 19:31:54

Calling Loader.cancelLoad() does not cancel the current load?

My English does not give me complete confidence in the meaning of what I read))
" If there is currently a load in progress, this method requests that the load be canceled, and notes this is the case; once the background thread has completed its work its remaining state will be cleared. If another load request comes in during this time, it will be held until the canceled load is complete."
Those. if the download process is currently running, and we cancel it, then the next download will still start only after this one is completed? This is some nonsense

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tiberal, 2017-02-06
@Ryabos

cancelLoad will wait for the thread to complete, but at the end it will pull onCanceled and clean up the state. There will be no new download until this rigmarole is over.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question