@@ -73,10 +73,10 @@ private AndroidObservable() {
73
73
74
74
/**
75
75
* Binds the given source sequence to an activity.
76
- * <p/ >
76
+ * <p>
77
77
* This helper will schedule the given sequence to be observed on the main UI thread and ensure
78
78
* that no notifications will be forwarded to the activity in case it is scheduled to finish.
79
- * <p/ >
79
+ * <p>
80
80
* You should unsubscribe from the returned Observable in onDestroy at the latest, in order to not
81
81
* leak the activity or an inner subscriber. Conversely, when the source sequence can outlive the activity,
82
82
* make sure to bind to new instances of the activity again, e.g. after going through configuration changes.
@@ -87,16 +87,16 @@ private AndroidObservable() {
87
87
*/
88
88
public static <T > Observable <T > bindActivity (Activity activity , Observable <T > source ) {
89
89
Assertions .assertUiThread ();
90
- return source .observeOn ( mainThread ()). lift (new OperatorConditionalBinding <T , Activity >(activity , ACTIVITY_VALIDATOR ));
90
+ return source .lift (new OperatorConditionalBinding <T , Activity >(activity , ACTIVITY_VALIDATOR )). observeOn ( mainThread ( ));
91
91
}
92
92
93
93
/**
94
94
* Binds the given source sequence to a fragment (native or support-v4).
95
- * <p/ >
95
+ * <p>
96
96
* This helper will schedule the given sequence to be observed on the main UI thread and ensure
97
97
* that no notifications will be forwarded to the fragment in case it gets detached from its
98
98
* activity or the activity is scheduled to finish.
99
- * <p/ >
99
+ * <p>
100
100
* You should unsubscribe from the returned Observable in onDestroy for normal fragments, or in onDestroyView
101
101
* for retained fragments, in order to not leak any references to the host activity or the fragment.
102
102
* Refer to the samples project for actual examples.
0 commit comments