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

Commit 6b42bc0e authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

More maybe fix issue #22765972: Binder transactions running out...

...of address space causing package manager to fail

Make sure to flush binder commands when done with an async task.

Change-Id: I9f171add7051587ab854226b97a12c7e1844ad5d
parent eda1cc50
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
            }
        };