Merge "AsyncTask terminating with exception calls onCancelled" into nyc-mr1-dev
This commit is contained in:
@@ -304,6 +304,9 @@ public abstract class AsyncTask<Params, Progress, Result> {
|
|||||||
//noinspection unchecked
|
//noinspection unchecked
|
||||||
result = doInBackground(mParams);
|
result = doInBackground(mParams);
|
||||||
Binder.flushPendingCommands();
|
Binder.flushPendingCommands();
|
||||||
|
} catch (Throwable tr) {
|
||||||
|
mCancelled.set(true);
|
||||||
|
throw tr;
|
||||||
} finally {
|
} finally {
|
||||||
postResult(result);
|
postResult(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user