瀏覽代碼

temp comment explaining this mess

Daniel Zlotin 7 年之前
父節點
當前提交
1514743224
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. 1
    2
      android/app/src/main/java/com/reactnativenavigation/NavigationApplication.java

+ 1
- 2
android/app/src/main/java/com/reactnativenavigation/NavigationApplication.java 查看文件

@@ -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);