Procházet zdrojové kódy

temp comment explaining this mess

Daniel Zlotin před 7 roky
rodič
revize
1514743224

+ 1
- 2
android/app/src/main/java/com/reactnativenavigation/NavigationApplication.java Zobrazit soubor

@@ -81,7 +81,6 @@ public abstract class NavigationApplication extends Application implements React
81 81
                             UiThread.postDelayed(new Runnable() {
82 82
                                 @Override
83 83
                                 public void run() {
84
-                                    android.util.Log.d("DebuggingIsHell", "NavigationApplication:run() " + 1);
85 84
                                     new NavigationEventEmitter(context).emitAppLaunched();
86 85
                                 }
87 86
                             }, diff);
@@ -95,10 +94,10 @@ public abstract class NavigationApplication extends Application implements React
95 94
                 host.getReactInstanceManager().onHostResume(activity, (DefaultHardwareBackBtnHandler) activity);
96 95
 
97 96
                 if (creating.compareAndSet(true, false)) {
97
+                    // this should run only after activity closed and started again, but we already HAVE context
98 98
                     UiThread.postDelayed(new Runnable() {
99 99
                         @Override
100 100
                         public void run() {
101
-                            android.util.Log.d("DebuggingIsHell", "NavigationApplication:run() " + 2);
102 101
                             new NavigationEventEmitter(host.getReactInstanceManager().getCurrentReactContext()).emitAppLaunched();
103 102
                         }
104 103
                     }, 1000);