You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
` @Autowired(name = Constants.INTENT_DATA)
@JvmField
var type: Int = 0
@Autowired(name = Constants.INTENT_DATA1)
@JvmField
var goodId: String? = ""
@Autowired(name = Constants.INTENT_DATA2)
@JvmField
var showTitle: Boolean = true`
目标页面接受参数如上,autowired生成的代码如下:
`/**
DO NOT EDIT THIS FILE!!! IT WAS GENERATED BY AROUTER. */
public class IVoicePricesFragment$$ARouter$$Autowired implements ISyringe {
private SerializationService serializationService;
` @Autowired(name = Constants.INTENT_DATA)
@JvmField
var type: Int = 0
目标页面接受参数如上,autowired生成的代码如下:
`/**
public class IVoicePricesFragment$$ARouter$$Autowired implements ISyringe {
private SerializationService serializationService;
@OverRide
public void inject(Object target) {
serializationService = ARouter.getInstance().navigation(SerializationService.class);
IVoicePricesFragment substitute = (IVoicePricesFragment)target;
substitute.type = substitute.getArguments().getInt("data");
substitute.goodId = substitute.getArguments().getString("data1");
substitute.showTitle = substitute.getArguments().getBoolean("data2");
}
}`
为什么getBoolean方法中没有用目标页面的默认值作为参数呢?不应该是getBoolean("data2",substitute.showTitle);吗???
The text was updated successfully, but these errors were encountered: