Merge change I9b771df3 into eclair

* changes:
  Make sure AsyncTask sens a null result to onPostExecute() when cancelled.
This commit is contained in:
Android (Google) Code Review
2009-10-05 18:28:26 -04:00

View File

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