cantrowitz / RxBroadcast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rxjava2

andreya108 opened this issue · comments

Hi!

Will you update your lib for RxJava 2?

accepting pull requests!

pending #9 completes CI pass. Will merge when done.

Just noticed, I forgot to change README.md.
When new lib will be available in global repos?

I have updated and released. It should be there in a few hours or so

Thanks!

In README.md in Unregistering section:
Disposable is returned on subscribe() instead of Subscription in RxJava2:

Disposable disposable = RxBroadcast.fromLocalBroadcast(context, intentFilter).subscribe(...);
...

  protected void onStop() {
    super.onStop();

    if (disposable != null) {
      disposable.dispose();
    }
  }