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