|
@@ -90,9 +90,10 @@ public class HomeFragment extends Fragment {
|
|
|
|
|
|
|
|
|
adapter = new PostRecyclerAdapter(list, rootView.getContext());
|
|
|
-
|
|
|
+ adapter.setStateRestorationPolicy(RecyclerView.Adapter.StateRestorationPolicy.PREVENT_WHEN_EMPTY);
|
|
|
recyclerView.setAdapter(adapter);
|
|
|
|
|
|
+
|
|
|
swipeContainer.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
|
|
|
|
|
|
@Override
|