Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89c76843 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change I9b771df3 into eclair

* changes:
  Make sure AsyncTask sens a null result to onPostExecute() when cancelled.
parents 24f32b32 4b057801
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -413,6 +413,7 @@ public abstract class AsyncTask<Params, Progress, Result> {
    }

    private void finish(Result result) {
        if (isCancelled()) result = null;
        onPostExecute(result);
        mStatus = Status.FINISHED;
    }