AsyncTask terminating with exception calls onCancelled

am: 5eb91a437c

Change-Id: If17d5621b6813c1f02d533e853ad9b8865fdbc19
This commit is contained in:
Tony Mantler
2016-09-28 23:34:13 +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);
}