am b0b4a704
: Merge "ActivityThread: Avoid creating duplicate handlers and reuse mH"
* commit 'b0b4a704400319ceaa1002f3194a40553a00cc82': ActivityThread: Avoid creating duplicate handlers and reuse mH
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user