Commit dc63dd15 authored by Varun Patil's avatar Varun Patil

Check if RecyclerView adapter is set on display (fix #232)

parent 21c7f971
......@@ -87,7 +87,7 @@ public abstract class RecyclerViewFragment<T extends Clickable, S extends Recycl
/* Skip if we're already destroyed */
if (getActivity() == null || getView() == null) return;
if (adapter == null) {
if (adapter == null || recyclerView.getAdapter() != adapter) {
initAdapter(result);
} else {
adapter.setPosts(result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment