Allow offline filtering #75
No reviewers
Labels
No Label
Difficulty - Beginner friendly
Difficulty = Easy
Difficulty = Hard
Difficulty = Medium
Priority = CRITICAL
Priority = High
Priority = Low
Priority = Normal
Priority = Some day
Status - Fixed somewhere else
Status - No details provided
Status = Can't fix
Status = Duplicate
Status = Help wanted
Status = Invalid
Status = Need more details
Status = Taken
Status = Wontfix
Type - Selfoss works like this
Type = Bug
Type = Chore
Type = Enhancement
Type = Feature
Type = Question
Type = SELFOSS API ISSUE
Type = Tools
Type = UX/Design
Up For Grabs
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Louvorg/ReaderForSelfoss-multiplatform#75
Loading…
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...