reset cursor when initial load is called (happens after rest data cache action)

This commit is contained in:
Satindar Dhillon
2023-03-23 13:34:33 -07:00
parent eaf46057f4
commit af142b190b

View File

@ -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()
}