Merge branch 'feature/filters'
This commit is contained in:
commit
27ed78c293
|
@ -45,6 +45,7 @@ public class HomeTimelineFragment extends FabStatusListFragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Status> filterPosts(List<Status> items) {
|
private List<Status> filterPosts(List<Status> items) {
|
||||||
|
// This is the function I must use to solve the filters thing for real
|
||||||
return items.stream().filter(i ->
|
return items.stream().filter(i ->
|
||||||
(GlobalUserPreferences.showReplies || i.inReplyToId == null) &&
|
(GlobalUserPreferences.showReplies || i.inReplyToId == null) &&
|
||||||
(GlobalUserPreferences.showBoosts || i.reblog == null)
|
(GlobalUserPreferences.showBoosts || i.reblog == null)
|
||||||
|
|
Loading…
Reference in New Issue