Archived
Possibly fixed-for-good a bug that caused events to be fetched but not stored properly in the database; I believe this was caused by FetcherActivity.kt sequentially executing nukeEvents() and insertEvents(), but doing both asynchronously, and individually, which could mean that insertEvents() finishes before nukeEvents() and therefore nukeEvents() would delete the old events as well as the new ones. This doesn't seem entirely logical to me, as no ConflictStrategy has been configured, and inserting new events before the old ones have been cleared (since they both start their primary keys at 0) would have crashed the app.
This commit is contained in:
@@ -27,7 +27,7 @@ class StudIPEventItemAdapter(
|
||||
) : RecyclerView.Adapter<StudIPEventItemAdapter.EventViewHolder>() {
|
||||
|
||||
/**
|
||||
* List of all events (still not filtered by day at this point)
|
||||
* List of all events.
|
||||
*/
|
||||
private var events: MutableList<StudIPEvent> = mutableListOf()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user