|
|
@@ -150,13 +150,15 @@ public class ActMiDong extends BaseActivity {
|
|
|
super.onCreate(savedInstanceState);
|
|
|
// TODO: add setContentView(...) invocation
|
|
|
ButterKnife.bind(this);
|
|
|
- EventBus.getDefault().register(this);
|
|
|
+ if(!EventBus.getDefault().isRegistered(this))
|
|
|
+ EventBus.getDefault().register(this);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
protected void onDestroy() {
|
|
|
super.onDestroy();
|
|
|
- EventBus.getDefault().unregister(this);
|
|
|
+ if(EventBus.getDefault().isRegistered(this))
|
|
|
+ EventBus.getDefault().unregister(this);
|
|
|
}
|
|
|
|
|
|
@Subscribe
|