Skip to content

Commit

Permalink
#69 Add remark about keeping strong reference to RXSharedPreferences
Browse files Browse the repository at this point in the history
  • Loading branch information
ubuntudroid authored Feb 8, 2017
1 parent 6968e89 commit 2a3d995
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(co
RxSharedPreferences rxPreferences = RxSharedPreferences.create(preferences);
```

*Hint: Keep a strong reference on your `RxSharedPreferences` instance for as long as you want to observe them to prevent listeners from being GCed.*

Create individual `Preference` objects:

```java
Expand Down

0 comments on commit 2a3d995

Please sign in to comment.