Skip to content

Commit

Permalink
Tweaked README
Browse files Browse the repository at this point in the history
  • Loading branch information
dlew committed Jul 22, 2015
1 parent 985c6f3 commit 375d8ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can then unsubscribe explicitly when an event occurs:

```java
myObservable
.compose(RxLifecycle.bindUntilEvent(lifecycle, ActivityEvent.DESTROY))
.compose(RxLifecycle.bindUntilActivityEvent(lifecycle, ActivityEvent.DESTROY))
.subscribe();
```

Expand All @@ -36,7 +36,7 @@ calling `subscribe()`. Otherwise, some operators may ignore the unsubscription r
Where do the sequences of `ActivityEvent` or `FragmentEvent` come from? You can either write it yourself, or you can
include rxlifecycle-components, which comes with pre-built `Activity` and `Fragment` implementations with lifecycles.

If you use rxlifecycle-components, just extend the appropriate class, then use the built-in `bindToLifecycle()` method:
If you use rxlifecycle-components, just extend the appropriate class, then use the built-in `bindToLifecycle()` (or `bindUntilEvent()`) methods:

```java
public class MyActivity extends RxActivity {
Expand Down

0 comments on commit 375d8ad

Please sign in to comment.