greenrobot / EventBus

Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.
http://greenrobot.org/eventbus/
Apache License 2.0
24.67k stars 4.66k forks source link

Can't receive the message #724

Open everyline opened 8 months ago

everyline commented 8 months ago

在一个页面打开的时候会收到其他几个页面发送来同样的EventMessageBean,但是EventMessageBean里面的type不一样,会导致只接收到一次数据,剩余的页面发送的都收不到 When opening a page will receive several other page is sent to the same EventMessageBean, EventMessageBean inside of different type, can cause only receives the data at a time, don't get to send the rest of the page 图片 图片

everyline commented 8 months ago

这个页面打开的时候会同时收到其他几个页面同时发来的消息,导致消息只能接收第一条,其他的都收不到。 When this page is opened, it will receive messages from several other pages at the same time, resulting in only the first message can be received, and the others cannot be received.

greenrobot-team commented 8 months ago

It appears you are using sticky events. To prevent receiving the same sticky event again, use removeStickyEvent. See the documentation.

Does that solve your issue?