Skip to content

Commit 4a97566

Browse files
Maraguessamtstern
authored andcommitted
Update docs stating the need to call cleanup (#550)
1 parent 9b5bd1d commit 4a97566

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

database/src/main/java/com/firebase/ui/database/FirebaseRecyclerAdapter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
* };
6868
* recycler.setAdapter(mAdapter);
6969
* </pre>
70+
* <p>
71+
* To avoid Context leaks, make sure you invoke {@link #cleanup() cleanup}
72+
* <p>
7073
*
7174
* @param <T> The Java class that maps to the type of objects stored in the Firebase location.
7275
* @param <VH> The ViewHolder class that contains the Views in the layout that is shown for each object.

0 commit comments

Comments
 (0)