mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
reset cursor when initial load is called (happens after rest data cache action)
This commit is contained in:
parent
eaf46057f4
commit
af142b190b
1 changed files with 8 additions and 0 deletions
|
|
@ -110,6 +110,14 @@ class LibraryViewModel @Inject constructor(
|
|||
}
|
||||
|
||||
fun initialLoad() {
|
||||
if (getLastSyncTime() == null) {
|
||||
hasLoadedInitialFilters = false
|
||||
cursor = null
|
||||
librarySearchCursor = null
|
||||
searchIdx = 0
|
||||
receivedIdx = 0
|
||||
}
|
||||
|
||||
if (hasLoadedInitialFilters) { return }
|
||||
load()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue