Closed gdky005 closed 2 years ago
See https://github.com/greenrobot/EventBus/issues/637.
I think README.md have a bug。 He'll lead more people to misunderstand and delay.
@Override public void onStart() { super.onStart(); EventBus.getDefault().register(this); } @Override public void onStop() { super.onStop(); EventBus.getDefault().unregister(this); }
That's right:
@Override public void onCreate() { super.onStart(); EventBus.getDefault().register(this); } @Override public void onDestory() { super.onStop(); EventBus.getDefault().unregister(this); }
Spam
See https://github.com/greenrobot/EventBus/issues/637.
I think README.md have a bug。 He'll lead more people to misunderstand and delay.
That's right: