Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
297fec0e
Commit
297fec0e
authored
Feb 03, 2019
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent preserving scroll position on changing fragment
parent
f7ec0474
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/src/main/java/app/insti/fragment/ExploreFragment.java
app/src/main/java/app/insti/fragment/ExploreFragment.java
+1
-3
app/src/main/java/app/insti/fragment/FeedFragment.java
app/src/main/java/app/insti/fragment/FeedFragment.java
+1
-1
No files found.
app/src/main/java/app/insti/fragment/ExploreFragment.java
View file @
297fec0e
...
@@ -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
...
...
app/src/main/java/app/insti/fragment/FeedFragment.java
View file @
297fec0e
...
@@ -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
;
p
ublic
static
int
index
=
-
1
,
top
=
-
1
;
p
rivate
int
index
=
-
1
,
top
=
-
1
;
private
FeedAdapter
feedAdapter
=
null
;
private
FeedAdapter
feedAdapter
=
null
;
public
FeedFragment
()
{
public
FeedFragment
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment