bytedance / scene

Android Single Activity Framework compatible with Fragment.
Apache License 2.0
2.11k stars 202 forks source link

请教一个关于PushResultCallback的问题 #21

Closed Iridescentangle closed 4 years ago

Iridescentangle commented 4 years ago

项目是模块化开发的,之前在传递一个实体类的时候很顺利,但是现在传递Boolean和String,在pushResultCallback中可以收到回调,但result始终为空. image

我仔细地查找了和有效代码不同的地方,只有这一点,就是回传的实体类是实现了Serializable的,而之后两次使用传递的则是String和Boolean 求解~~~

qii commented 4 years ago

https://github.com/bytedance/scene/blob/b7299ff5fe34f933bffa9170c35ea361ec5a00c9/demo/src/main/java/com/bytedance/scenedemo/navigation/forresult/SceneResultScene_1.kt#L37 demo里面传的就是String,跑起来是正常的