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

Commit b0b4a704 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by android code review
Browse files

Merge "ActivityThread: Avoid creating duplicate handlers and reuse mH"

parents b8da225f 7335cfd9
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -4728,13 +4728,14 @@ public final class ActivityThread {
        Process.setArgV0("<pre-initialized>");

        Looper.prepareMainLooper();
        if (sMainThreadHandler == null) {
            sMainThreadHandler = new Handler();
        }

        ActivityThread thread = new ActivityThread();
        thread.attach(false);

        if (sMainThreadHandler == null) {
            sMainThreadHandler = thread.getHandler();
        }

        AsyncTask.init();

        if (false) {