From 375d8adfb531f0976708e9925af9206ffb2ade6c Mon Sep 17 00:00:00 2001 From: Dan Lew Date: Wed, 22 Jul 2015 11:52:21 -0500 Subject: [PATCH] Tweaked README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 20da6a3..bae2cdb 100644 --- a/README.md +++ b/README.md @@ -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(); ``` @@ -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 {