ducdan / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Allow to cancel particular async operation #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start ajax call with progress dialog. 
2. Cancel progress dialog.
3. Dialog disappears, but async call is still running.

What is the expected output? What do you see instead?
Async task should be canceled when canceling dialog.

What version of the product are you using? On what operating system?
android-query-full.0.24.3.jar

Please provide any additional information below.
Will be very handy to allow canceling any task with something like calling 
cancel() on AbstractAjaxCallback. Actualy my case is to cancel background task, 
when DialogFragment is canceled.

Original issue reported on code.google.com by vladisla...@gmail.com on 26 Feb 2013 at 11:06

GoogleCodeExporter commented 8 years ago
Call AjaxCallback.abort() when your dialog cancel.

Original comment by tinyeeliu@gmail.com on 6 Mar 2013 at 11:31