Daniel Zlotin před 7 roky
rodič
revize
3ac0c008c9

+ 0
- 1
android/app/src/main/java/com/reactnativenavigation/NavigationActivity.java Zobrazit soubor

@@ -91,7 +91,6 @@ public class NavigationActivity extends AppCompatActivity implements DefaultHard
91 91
             host.getReactInstanceManager().onHostDestroy(this);
92 92
         }
93 93
         host.clear();
94
-        android.util.Log.d("DebuggingIsHell", "NavigationActivity:onDestroy() ");
95 94
     }
96 95
 
97 96
     @Override

+ 0
- 1
android/app/src/main/java/com/reactnativenavigation/react/NavigationModule.java Zobrazit soubor

@@ -48,7 +48,6 @@ public class NavigationModule extends ReactContextBaseJavaModule {
48 48
                                     @Override
49 49
                                     public View create(String id, String name) {
50 50
                                         ReactRootView rootView = new ReactRootView(getActivity());
51
-                                        rootView.setId(1234567);
52 51
                                         Bundle opts = new Bundle();
53 52
                                         opts.putString("id", id);
54 53
                                         rootView.startReactApplication(getActivity().getHost().getReactInstanceManager(), name, opts);

+ 2
- 6
playground/android/app/src/androidTest/java/com/reactnativenavigation/playground/ReactIdlingResource.java Zobrazit soubor

@@ -12,9 +12,10 @@ import java.util.concurrent.atomic.AtomicBoolean;
12 12
 class ReactIdlingResource implements IdlingResource, NotThreadSafeBridgeIdleDebugListener {
13 13
     private final NavigationActivity activity;
14 14
     private ResourceCallback callback;
15
+    private AtomicBoolean registered = new AtomicBoolean(false);
16
+    private AtomicBoolean bridgeIdle = new AtomicBoolean(false);
15 17
 
16 18
     ReactIdlingResource(NavigationActivity activity) {
17
-        android.util.Log.d("DebuggingIsHell", "------------------------------");
18 19
         this.activity = activity;
19 20
         NavigationApplication.instance.runOnUiThreadDelayed(new Runnable() {
20 21
             @Override
@@ -26,8 +27,6 @@ class ReactIdlingResource implements IdlingResource, NotThreadSafeBridgeIdleDebu
26 27
         }, 10);
27 28
     }
28 29
 
29
-    private AtomicBoolean registered = new AtomicBoolean(false);
30
-    private AtomicBoolean bridgeIdle = new AtomicBoolean(false);
31 30
 
32 31
     @Override
33 32
     public String getName() {
@@ -49,7 +48,6 @@ class ReactIdlingResource implements IdlingResource, NotThreadSafeBridgeIdleDebu
49 48
         }
50 49
 
51 50
         boolean idle = bridgeIdle.get();
52
-        android.util.Log.d("DebuggingIsHell", "idle " + idle);
53 51
         if (idle) {
54 52
             callback.onTransitionToIdle();
55 53
         }
@@ -63,13 +61,11 @@ class ReactIdlingResource implements IdlingResource, NotThreadSafeBridgeIdleDebu
63 61
 
64 62
     @Override
65 63
     public void onTransitionToBridgeIdle() {
66
-        android.util.Log.d("DebuggingIsHell", "IDLE");
67 64
         bridgeIdle.set(true);
68 65
     }
69 66
 
70 67
     @Override
71 68
     public void onTransitionToBridgeBusy() {
72
-        android.util.Log.d("DebuggingIsHell", "busy");
73 69
         bridgeIdle.set(false);
74 70
     }
75 71
 }

+ 1
- 2
playground/android/app/src/main/AndroidManifest.xml Zobrazit soubor

@@ -8,8 +8,7 @@
8 8
         android:allowBackup="false"
9 9
         android:icon="@mipmap/ic_launcher"
10 10
         android:label="@string/app_name"
11
-        android:theme="@style/AppTheme"
12
-        >
11
+        android:theme="@style/AppTheme">
13 12
         <activity
14 13
             android:name=".MainActivity"
15 14
             android:label="@string/app_name">