Fixed a bug hiding all Stud.IP events from the user's view by... renaming the database table. yeah. i don't even know anymore.

This commit is contained in:
denizk0461
2023-04-28 10:30:30 +02:00
parent ce7b854e8c
commit ee0934f29b
8 changed files with 28 additions and 23 deletions
@@ -75,12 +75,15 @@ class FetcherActivity : Activity() {
StudIPParser().parse(URLDecoder.decode(p0, "UTF-8")) { events ->
// Delete all previously fetched elements
viewModel.nukeEvents()
// Insert the list into the database
viewModel.insertEvents(events)
// Notify the user that the fetch was successful
Toast.makeText(
this, R.string.toast_fetch_finished, Toast.LENGTH_SHORT
).show()
// Close the activity
finish()
}