Allow offline filtering #75
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "davidoskky/ReaderForSelfoss-multiplatform:offline_filters"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Types of changes
This closes issue #58
Also fixed the database was storing the article title in place of the source title.
@ -71,6 +71,10 @@ class Repository(private val api: SelfossApi, private val appSettingsService: Ap
displayedItems == ItemType.ALL ||
This should be something like this.
@ -69,0 +72,4 @@
(it.starred && displayedItems == ItemType.STARRED)
}
if (tagFilter != null) {
dbItems.filter { it.tags.contains(tagFilter!!.tag) }
This should be
dbItems = dbItems.filter { it.tags.contains(tagFilter!!.tag) }
(withdbItems
being a var). Else, it does not filter anything.@ -69,0 +75,4 @@
dbItems.filter { it.tags.contains(tagFilter!!.tag) }
}
if (sourceFilter != null) {
dbItems.filter { it.sourcetitle == sourceFilter!!.title }
This should be
dbItems = dbItems.filter { it.tags.contains(tagFilter!!.tag) }
(withdbItems
being a var). Else, it does not filter anything.Right... I didn't write the tests correctly and assumed that worked...