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
7953a4dc
Commit
7953a4dc
authored
Nov 30, 2018
by
Sajal Narang
Committed by
GitHub
Nov 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #245 from wncc/issue232
Fix data not showing on popping back stack
parents
292e7c74
fbf54a60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
app/src/main/java/app/insti/fragment/MapFragment.java
app/src/main/java/app/insti/fragment/MapFragment.java
+1
-5
app/src/main/java/app/insti/fragment/RecyclerViewFragment.java
...rc/main/java/app/insti/fragment/RecyclerViewFragment.java
+1
-1
No files found.
app/src/main/java/app/insti/fragment/MapFragment.java
View file @
7953a4dc
...
...
@@ -145,7 +145,6 @@ public class MapFragment extends Fragment implements TextWatcher,
private
boolean
editTextFocused
=
false
;
private
Toast
toast
;
private
String
message
=
"Sorry, no such place in our data."
;
private
boolean
locationsShown
=
false
;
private
boolean
GPSIsSetup
=
false
;
private
boolean
followingUser
=
false
;
private
Marker
user
=
new
Marker
(
"You"
,
""
,
0
,
0
,
-
10
,
""
);
...
...
@@ -233,10 +232,7 @@ public class MapFragment extends Fragment implements TextWatcher,
@Override
public
void
onResponse
(
Call
<
List
<
Venue
>>
call
,
Response
<
List
<
Venue
>>
response
)
{
if
(
response
.
isSuccessful
())
{
if
(!
locationsShown
)
{
setupWithData
(
response
.
body
());
locationsShown
=
true
;
}
setupWithData
(
response
.
body
());
}
}
...
...
app/src/main/java/app/insti/fragment/RecyclerViewFragment.java
View file @
7953a4dc
...
...
@@ -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
);
...
...
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