Commit 297fec0e authored by Varun Patil's avatar Varun Patil

Prevent preserving scroll position on changing fragment

parent f7ec0474
...@@ -50,13 +50,11 @@ public class ExploreFragment extends Fragment { ...@@ -50,13 +50,11 @@ public class ExploreFragment extends Fragment {
private static List<CardInterface> cards = new ArrayList<>(); private static List<CardInterface> cards = new ArrayList<>();
private static int index;
private static int top;
private String sessionId; private String sessionId;
private GenericAdapter genericAdapter; private GenericAdapter genericAdapter;
private String currentQuery = null; private String currentQuery = null;
private int index = -1, top = -1;
public ExploreFragment() { public ExploreFragment() {
// Required empty public constructor // Required empty public constructor
......
...@@ -36,7 +36,7 @@ public class FeedFragment extends BaseFragment { ...@@ -36,7 +36,7 @@ public class FeedFragment extends BaseFragment {
private SwipeRefreshLayout feedSwipeRefreshLayout; private SwipeRefreshLayout feedSwipeRefreshLayout;
private FloatingActionButton fab; private FloatingActionButton fab;
LinearLayoutManager mLayoutManager; LinearLayoutManager mLayoutManager;
public static int index = -1, top = -1; private int index = -1, top = -1;
private FeedAdapter feedAdapter = null; private FeedAdapter feedAdapter = null;
public FeedFragment() { public FeedFragment() {
......
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