|
@@ -8,16 +8,14 @@ import android.support.annotation.Nullable;
|
8
|
8
|
import android.support.v7.app.AppCompatActivity;
|
9
|
9
|
import android.widget.FrameLayout;
|
10
|
10
|
|
|
11
|
+import com.reactnativenavigation.R;
|
11
|
12
|
import com.reactnativenavigation.params.ScreenParams;
|
12
|
|
-import com.reactnativenavigation.utils.ViewUtils;
|
13
|
13
|
import com.reactnativenavigation.views.ContentView;
|
14
|
14
|
import com.reactnativenavigation.views.TitleBarBackButtonListener;
|
15
|
15
|
|
16
|
16
|
import java.lang.reflect.InvocationTargetException;
|
17
|
17
|
import java.lang.reflect.Method;
|
18
|
18
|
|
19
|
|
-import com.reactnativenavigation.R;
|
20
|
|
-
|
21
|
19
|
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
|
22
|
20
|
|
23
|
21
|
@SuppressWarnings("ResourceType")
|
|
@@ -91,7 +89,7 @@ public class FragmentScreen extends Screen {
|
91
|
89
|
String className = screenParams.fragmentCreatorClassName;
|
92
|
90
|
Class<?> fragmentCreatorClass = Class.forName(className);
|
93
|
91
|
Method method = fragmentCreatorClass.getMethod(CONTRACT_GET_FRAGMENT, Bundle.class);
|
94
|
|
- return (android.app.Fragment) method.invoke(null, "TODO");
|
|
92
|
+ return (android.app.Fragment) method.invoke(null, new Bundle());
|
95
|
93
|
} catch (NoSuchMethodException noSuchMethod) {
|
96
|
94
|
return null;
|
97
|
95
|
}
|
|
@@ -103,7 +101,7 @@ public class FragmentScreen extends Screen {
|
103
|
101
|
String className = screenParams.fragmentCreatorClassName;
|
104
|
102
|
Class<?> fragmentCreatorClass = Class.forName(className);
|
105
|
103
|
Method method = fragmentCreatorClass.getMethod(CONTRACT_GET_SUPPORT_FRAGMENT, Bundle.class);
|
106
|
|
- return (android.support.v4.app.Fragment) method.invoke(null, "TODO");
|
|
104
|
+ return (android.support.v4.app.Fragment) method.invoke(null, new Bundle());
|
107
|
105
|
} catch (NoSuchMethodException noSuchMethod) {
|
108
|
106
|
return null;
|
109
|
107
|
}
|