AsyncTask terminating with exception calls onCancelled am: 5eb91a437c
am: 3e51bb267d
Change-Id: I5d8766c0157541720118dd3d264875df58562907
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