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