|
|
@@ -121,28 +121,31 @@ public class FgtWebX5 extends BaseFgtWeb {
|
|
|
|
|
|
public static FgtWebX5 newInstance(WebParams webParams) {
|
|
|
FgtWebX5 fragment = new FgtWebX5();
|
|
|
- Bundle bundle = new Bundle();
|
|
|
- DataUtil.putObject(bundle, webParams);
|
|
|
- fragment.setArguments(bundle);
|
|
|
+ fragment.webParams = webParams;
|
|
|
+// Bundle bundle = new Bundle();
|
|
|
+// DataUtil.putObject(bundle, webParams);
|
|
|
+// fragment.setArguments(bundle);
|
|
|
return fragment;
|
|
|
}
|
|
|
|
|
|
public FgtWebX5() {
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
|
|
- View rootView = super.onCreateView(inflater, container, savedInstanceState);
|
|
|
- Bundle bundle = getArguments();
|
|
|
- if (bundle != null) {
|
|
|
- WebParams webParams = DataUtil.getObject(bundle, WebParams.class);
|
|
|
- if(webParams != null){
|
|
|
- this.webParams = webParams;
|
|
|
- checkWebParams(webParams);
|
|
|
- }
|
|
|
- }
|
|
|
- return rootView;
|
|
|
- }
|
|
|
+// @Override
|
|
|
+// public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
|
|
+// View rootView = super.onCreateView(inflater, container, savedInstanceState);
|
|
|
+// Bundle bundle = getArguments();
|
|
|
+// if (bundle != null) {
|
|
|
+// WebParams webParams = DataUtil.getObject(bundle, WebParams.class);
|
|
|
+// if(webParams != null){
|
|
|
+// this.webParams = webParams;
|
|
|
+// checkWebParams(webParams);
|
|
|
+// initView();
|
|
|
+// initListener();
|
|
|
+// }
|
|
|
+// }
|
|
|
+// return rootView;
|
|
|
+// }
|
|
|
|
|
|
//忽略 添加有范商城快捷入口
|
|
|
public static final String KEY_IGNORE_ADD_YOU_FAN_LAUNCHER = "ignore_add_you_fan_launcher";
|