Allow offline filtering #75
@ -71,6 +71,10 @@ class Repository(private val api: SelfossApi, private val appSettingsService: Ap
|
||||
displayedItems == ItemType.ALL ||
|
||||
|
||||
(it.unread && displayedItems == ItemType.UNREAD) ||
|
||||
(it.starred && displayedItems == ItemType.STARRED)
|
||||
}.filter {
|
||||
tagFilter == null || it.tags.contains(tagFilter!!.tag)
|
||||
AmineB
commented
This should be This should be `dbItems = dbItems.filter { it.tags.contains(tagFilter!!.tag) }` (with `dbItems` being a var). Else, it does not filter anything.
|
||||
}.filter {
|
||||
sourceFilter == null || it.sourcetitle == sourceFilter!!.title
|
||||
}.map { it.toView() }
|
||||
AmineB
commented
This should be This should be `dbItems = dbItems.filter { it.tags.contains(tagFilter!!.tag) }` (with `dbItems` being a var). Else, it does not filter anything.
davidoskky
commented
Right... I didn't write the tests correctly and assumed that worked... Right... I didn't write the tests correctly and assumed that worked...
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user
This should be something like this.