0

Inside my activity am posting the GreenRobot Event . Inside fragment i register like

EventBus.getDefault().register(this);

But unable to automatically fired the subscription side fragment. is it possible to get updated inside fragment if yes any suggestion appreciated.

Amsheer
  • 7,046
  • 8
  • 47
  • 81

1 Answers1

0

Calling EventBus.getDefault().register(this); on onStart()

and

Calling EventBus.getDefault().unregister(this); on onDestory() of your fragment,

is enough to register and unregister listenening to events

hrskrs
  • 4,447
  • 5
  • 38
  • 52