denizk0461
|
e17a81e604
|
CanteenFragment.kt: replaced buttons for opening hours and canteen switch embedded in the app bar with floating action buttons; implemented a possible fix for the app crashing after refreshing the canteen plan. This may have been caused by accessing the view/context of the fragment to let the user know that the refresh succeeded or encountered an error. Reference will be null by the time the fragment is inactive, causing a NullPointerException
|
2023-05-04 15:09:10 +02:00 |
|
denizk0461
|
36a7ae0035
|
Replaced fragment switching functionality in MainActivity.kt with Navigation component, simplifying logic significantly; upgraded to AGP 8.0.1
|
2023-05-02 20:52:56 +02:00 |
|
denizk0461
|
5a9ab267aa
|
All sheets now have the ability to scroll; a custom selectable item background has been added to clickable views to get a custom coloured ripple effect on click
|
2023-05-01 22:19:44 +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
|
d0819553bc
|
Implemented licences dialogue in the settings; fully restored highlighting event functionality
|
2023-04-26 10:21:16 +02:00 |
|
denizk0461
|
6b1d77dfb3
|
Implemented functionality to switch canteens. UI for this is not fully implemented.
|
2023-04-25 15:38:30 +02:00 |
|
denizk0461
|
9b6e267cb0
|
Started implementation of event update sheet
|
2023-04-24 15:43:42 +02:00 |
|
denizk0461
|
b957172721
|
Transitioned from a fairly custom solution to using a colour palette generated by the Material Theme Builder to simplify colour management. Also began work on a bottom sheet for displaying allergens and additives in canteen offers.
|
2023-04-23 17:13:48 +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
|
b39aa1f003
|
Fixed a bug that would cause the tab for a day without canteen offers to not be shown, causing the offers for the next days to be shifted over, thus not showing the offers for the last day that's available online. I know I didn't explain that very well, but it's fixed now anyway, soo (: also made some minor visual adjustments to margins and colours
|
2023-04-20 21:35:09 +02:00 |
|
denizk0461
|
07a2902367
|
Highlighted course is now highlighted with the primary colour, 50% translucent
|
2023-04-20 14:30:48 +02:00 |
|
denizk0461
|
61822f1f45
|
Canteen content can now be displayed
|
2023-04-16 21:41:46 +02:00 |
|