Merge "More maybe fix issue #22765972: Binder transactions running out..." into mnc-dev

This commit is contained in:
Dianne Hackborn
2015-07-30 01:32:09 +00:00
committed by Android (Google) Code Review

View File

@@ -292,7 +292,9 @@ public abstract class AsyncTask<Params, Progress, Result> {
Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
//noinspection unchecked
return postResult(doInBackground(mParams));
Result result = doInBackground(mParams);
Binder.flushPendingCommands();
return postResult(result);
}
};