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
328b46ff
Commit
328b46ff
authored
Jul 02, 2018
by
mayu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabled Refresh
parent
a7f4ec26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/MyEventsFragment.java
...n/ac/iitb/gymkhana/iitbapp/fragment/MyEventsFragment.java
+2
-7
No files found.
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/fragment/MyEventsFragment.java
View file @
328b46ff
...
...
@@ -72,6 +72,7 @@ public class MyEventsFragment extends BaseFragment {
@Override
public
void
onStart
()
{
super
.
onStart
();
appDatabase
=
AppDatabase
.
getAppDatabase
(
getContext
());
new
showEvents
().
execute
();
...
...
@@ -87,13 +88,7 @@ public class MyEventsFragment extends BaseFragment {
private
void
updateOnRefresh
(){
List
<
Event
>
temp
=
appDatabase
.
dbDao
().
getAllEvents
();
List
<
Event
>
eventsfollowing
=
appDatabase
.
dbDao
().
getAllEvents
();
eventsfollowing
.
clear
();
int
k
=
temp
.
size
();
for
(
int
i
=
0
;
i
<
k
;
i
++)
{
if
(
temp
.
get
(
i
).
getEventUserUes
()
!=
0
)
eventsfollowing
.
add
(
temp
.
get
(
i
));
}
displayEvents
(
eventsfollowing
);
new
showEvents
().
execute
();
}
...
...
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