Пример #1
0
 @Override
 protected void onPause() {
   super.onPause();
   EventBus.unregisterAnnotatedReceiver(this);
 }
Пример #2
0
 @Override
 protected void onResume() {
   super.onResume();
   EventBus.registerAnnotatedReceiver(this);
 }