Phác Chí Huấn
New member
How do I destroy the RecyclerView adapter?
Answer
3 Answers
Answer
3 Answers
- Keep a subscription reference in the SiteAdapter. …
- unsubscribe the subscription object in onBindViewHolder (it’s called when the ViewHolder is reused)
- Keep the CompositeSubscription object in your adapter.
- Use the onDetachedFromRecyclerView method of your Adapter to unsubscribe the compositeSubscription.