AsyncTask terminating with exception calls onCancelled am: 5eb91a437c

am: 3e51bb267d

Change-Id: I5d8766c0157541720118dd3d264875df58562907
This commit is contained in:
Tony Mantler
2016-09-28 23:38:58 +00:00
committed by android-build-merger

View File

@@ -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);
}