Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-android
Commits
913479ca
Commit
913479ca
authored
Dec 31, 2016
by
Robert Hitt
Browse files
Tabs now show different content
parent
60a03b86
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/srct/whatsopen/ui/FacilityListFragment.java
View file @
913479ca
...
...
@@ -70,16 +70,19 @@ public class FacilityListFragment extends android.support.v4.app.Fragment {
case
"Favorites"
:
mRecyclerView
.
setAdapter
(
new
FacilityListAdapter
(
view
.
getContext
(),
mRealm
.
where
(
Facility
.
class
)
.
equalTo
(
"isFavorited"
,
true
)
.
findAllSortedAsync
(
"isOpen"
,
Sort
.
DESCENDING
)));
break
;
case
"Open"
:
mRecyclerView
.
setAdapter
(
new
FacilityListAdapter
(
view
.
getContext
(),
mRealm
.
where
(
Facility
.
class
)
.
equalTo
(
"isOpen"
,
true
)
.
findAllSortedAsync
(
"isOpen"
,
Sort
.
DESCENDING
)));
break
;
case
"Closed"
:
mRecyclerView
.
setAdapter
(
new
FacilityListAdapter
(
view
.
getContext
(),
mRealm
.
where
(
Facility
.
class
)
.
equalTo
(
"isOpen"
,
false
)
.
findAllSortedAsync
(
"isOpen"
,
Sort
.
DESCENDING
)));
break
;
default
:
...
...
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