denizk0461
|
2bf340bdff
|
TabLayoutMediator has been re-instantiated, hopefully in a form that is less crash-prone. Crashes will also be handled now in StwParser.kt
|
2023-04-29 10:56:52 +02:00 |
|
denizk0461
|
8fb41d6520
|
Edited canteen views to have direct database access in the CanteenPageFragment.kt, allowing for filtering the individual days through the database; filtering now works (with changes animated!!) through updating a LiveData and observing it in the page fragment
|
2023-04-28 22:44:23 +02:00 |
|
denizk0461
|
509a0434c5
|
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.
|
2023-04-28 15:14:50 +02:00 |
|
denizk0461
|
aa5d32e64a
|
Updated EventPageFragment.kt to have access to its own ViewModel and, by extension, its own reference to the database, which forgoes the need to transport data from EventFragment.kt through StudIPEventPageAdapter.kt to EventPageFragment.kt and allows for filtering for a specific day's items through the database rather than needing to iterate through the list via an extension function manually. Also implemented DiffUtil to perform individual updates rather than calling notifyDataSetChanged() every time a single item has been changed.
|
2023-04-28 11:18:05 +02:00 |
|
denizk0461
|
ee0934f29b
|
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.
|
2023-04-28 10:30:30 +02:00 |
|
denizk0461
|
ce7b854e8c
|
StwParser.kt now collects all its data before adding everything to the database all at once, fixing problems where LiveData would update before all transactions were finished; ViewPagers have been updated to use Adapters extending FragmentStateAdapter instead of RecyclerView.Adapter
|
2023-04-27 21:58:10 +02:00 |
|
denizk0461
|
65114264c4
|
Added opening hours and a button for the user to view them, but the formatting sucks
|
2023-04-25 16:55:17 +02:00 |
|
denizk0461
|
9b6e267cb0
|
Started implementation of event update sheet
|
2023-04-24 15:43:42 +02:00 |
|
denizk0461
|
fbad84aa09
|
Fully documented all Kotlin files and added TODOs to functions that need to be updated in some way
|
2023-04-23 11:57:03 +02:00 |
|