You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rxjava-contrib/rxjava-android-samples/samples/src/main/java/com/netflix/rxjava/android/samples/UIBindingActivity.java
+37-29Lines changed: 37 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -19,32 +19,32 @@
19
19
importrx.subscriptions.Subscriptions;
20
20
21
21
/**
22
-
* A retained fragment whose goals are below
23
-
*
24
-
* 1) gracefully handle rotation - not losing any data
25
-
* 2) gracefully handle the user moving in and out of the app
26
-
* 3) use a button or trigger of some sort to start the observable, something more in line with typical use
27
-
* 4) ensure that the callbacks are not called if the user moves away from the fragment
22
+
* Problem:
23
+
* You have a data source (where that data is potentially expensive to obtain), and you want to
24
+
* emit this data into a fragment. However, you want to gracefully deal with rotation changes and
25
+
* not lose any data already emitted.
26
+
* <p/>
27
+
* You also want your UI to update accordingly to the data being emitted.
0 commit comments