We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34d8574 + b0b4a70 commit 8b97ee6Copy full SHA for 8b97ee6
core/java/android/app/ActivityThread.java
@@ -4728,13 +4728,14 @@ public static void main(String[] args) {
4728
Process.setArgV0("<pre-initialized>");
4729
4730
Looper.prepareMainLooper();
4731
- if (sMainThreadHandler == null) {
4732
- sMainThreadHandler = new Handler();
4733
- }
4734
4735
ActivityThread thread = new ActivityThread();
4736
thread.attach(false);
4737
+ if (sMainThreadHandler == null) {
+ sMainThreadHandler = thread.getHandler();
+ }
4738
+
4739
AsyncTask.init();
4740
4741
if (false) {
0 commit comments