Eventbus: 一个注册的回调会被调用两次···

Created on 19 Jul 2017  ·  4Comments  ·  Source: greenrobot/EventBus

如题,求解···谢谢。

Most helpful comment

If I understand correctly: make sure that you unregister your subscribers properly. When used within Activity or Fragment use the equivalent lifecycle method (register in onCreate -> unregister in onDestroy OR register in onStart -> unregister in onStop OR ...). -ut

All 4 comments

哈哈哈,sticky事件吗,destroy里要添加removeStickyEvent.... @liaohuyu

Maybe this group don't speak or use Chinese.So you should translate your question in English.

If I understand correctly: make sure that you unregister your subscribers properly. When used within Activity or Fragment use the equivalent lifecycle method (register in onCreate -> unregister in onDestroy OR register in onStart -> unregister in onStop OR ...). -ut

No response. Closing. -ut

Was this page helpful?
0 / 5 - 0 ratings