Closed xiaolei123 closed 1 year ago
我有两个类: interface ICar class RedCar : ICar,Parcelable
在A页面进行路由,注入 withParcelable("car",new RedCar())
在B页面接收: class BActivity{ @AutoWrite late val car : ICar }
这时候,我获取不到我的值。我查看源码,是在处理注入的时候,没有考虑超类的问题。
是的,场景比较少,暂时不考虑支持这种情况。 把ICar换成具体类,或者用withObject()都可以解决
ICar
withObject()
我有两个类: interface ICar class RedCar : ICar,Parcelable
在A页面进行路由,注入 withParcelable("car",new RedCar())
在B页面接收: class BActivity{ @AutoWrite late val car : ICar }
这时候,我获取不到我的值。我查看源码,是在处理注入的时候,没有考虑超类的问题。