Only return new cached items
This commit is contained in:
parent
8dc3d319cd
commit
79fd115f5e
@ -457,9 +457,8 @@ class Repository(private val api: SelfossApi, private val appSettingsService: Ap
|
|||||||
val newItems = getMaxItemsForBackground(ItemType.UNREAD)
|
val newItems = getMaxItemsForBackground(ItemType.UNREAD)
|
||||||
val allItems = getMaxItemsForBackground(ItemType.ALL)
|
val allItems = getMaxItemsForBackground(ItemType.ALL)
|
||||||
val starredItems = getMaxItemsForBackground(ItemType.STARRED)
|
val starredItems = getMaxItemsForBackground(ItemType.STARRED)
|
||||||
val fullItemsList = newItems + allItems + starredItems
|
insertDBItems(newItems + allItems + starredItems)
|
||||||
insertDBItems(fullItemsList)
|
return newItems
|
||||||
return fullItemsList
|
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
// We do nothing
|
// We do nothing
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user