Commit Graph
10 Commits
Author SHA1 Message Date
denizk0461 7243df0f06 Further error handling. Also given the user the option to colour dietary preference icons. Colours have partially been derived from those used on stw-bremen.de but have all been processed through the theme builder on m3.material.io 2023-04-29 22:26:26 +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 840c8f1db7 Implemented snackbar telling the user that an error has occurred when fetching their schedule through FetcherActivity.kt. Also made some slight additions to the documentation 2023-04-25 12:02:25 +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
denizk0461 d55a304cec Moved the fetching task to a separate activity; changed the time attributes in StudIPEvent.kt to strings 2023-04-12 18:58:10 +02:00
denizk0461 4f78eb8373 Switch to ViewPager2 was successful; it was essentially a drop-in replacement. There's a bug in the connected TabLayout where, if the app starts and scrolls programmatically to Wednesday or later, the tab won't be focussed until the user starts scrolling again 2023-04-12 16:46:38 +02:00
denizk0461 8b690a4593 Minor changes; about to try and implement ViewPager2 instead of the RecyclerView to show different days. This is for better UX and compatibility with the TabLayout 2023-04-12 15:36:35 +02:00
denizk0461 d6eb7f5ce1 small adjustments and bugfix; timeslot was always saved into the database longer than would be correct; for example, a course from 08:15 to 09:45 would have been saved as 08:15 to 11:45 2023-04-10 21:03:02 +02:00
denizk0461 cab50b5f2d PARSING HTML WORKS AND IT GETS SAVED TO THE DATABASE WOOO 2023-04-10 20:54:15 +02:00