AndroidEventBus icon indicating copy to clipboard operation
AndroidEventBus copied to clipboard

我发现在参数为List<T>的情况下会被调用2次

Open a483210 opened this issue 8 years ago • 3 comments

我发现在参数为List<T>的情况下会被调用2次,修改为Object对象就好了,是不是有什么BUG

a483210 avatar Jul 27 '16 03:07 a483210

可以参考这里 https://github.com/hehonghui/AndroidEventBus/blob/master/Simple_eventbus_demo/src/org/simple/eventbus/demo/fragment/MenuFragment.java , 看看代码中是否有误。

hehonghui avatar Jul 27 '16 08:07 hehonghui

@hehonghui 相同的问题。应用在生产上运行过1年多没有问题,最近在Android7.0里面出现post Map参数和List参数的时候。会出现订阅者执行两次的情况, 但是使用基本数据类型和普通对象没有出现这种问题。带List成员变量的对象也没有问题。 Android7.0以下都是正常的。

vnicers avatar Jan 03 '17 10:01 vnicers

使用具体类型可解决,如HashMap,ArrayList...

myproject avatar Sep 16 '17 08:09 myproject