Commit Graph
19 Commits
Author SHA1 Message Date
denizk0461 d654ba8a03 Implemented user setting for displaying allergens next to an offer 2023-04-23 22:06:29 +02:00
denizk0461 ca89e68a91 Implemented allergen functionality by showing the user a bottom sheet 2023-04-23 20:33:17 +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 2534849329 Added comments and cleaned up code in activities and StudIPEvent.kt 2023-04-21 15:42:21 +02:00
denizk0461 7a6926ff64 Fixed a bug that would crash the app when refreshing the canteen view multiple times in quick succession. Turns out, the TabLayoutMediator only needs to be attached once. 2023-04-21 14:25:19 +02:00
denizk0461 ab316d9871 Fixed a bug that would cause the canteen plan to crash after refreshing while trying to layout the TabMediatorLayout. I don't know why that happened. 2023-04-21 14:20:06 +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 b5f5e06b7f Changed filter chip colour, but when pressed, the primary colour needs to be changed to a more desaturated tint 2023-04-20 12:19:44 +02:00
denizk0461 de1b5f8005 FILTERING WORKS FINAL 2023-04-20 11:53:14 +02:00
denizk0461 576592f0d0 Filtering fixed, but it still doesn't quite work as I wanted it to. e.g. selecting 'pork' and 'vegan' shows no elements, because of course nothing is both vegan and contains pork, but I wanted it to show options that are either or. Should leave it the way it is? 2023-04-20 10:17:04 +02:00
denizk0461 b9378901f4 Canteen items are now individually clickable to signal that they are separate items; BUG: filtering does not work anymore 2023-04-20 10:05:24 +02:00
denizk0461 5d58d25386 Canteen offers are now grouped; TODO: add a divider to separate different offers. Also, add prices 2023-04-20 08:17:23 +02:00
denizk0461 70a89ac681 Fixed filtering behaviour, since it wouldn't recognise items with two preferences if only one had been selected; added icons for preferences 2023-04-18 21:33:24 +02:00
denizk0461 c4d482f78f FILTERING WORKS 2023-04-18 16:41:01 +02:00
denizk0461 4d9ad39578 Made some improvements to the dietary preference handling, but CanteenOfferPageAdapter.kt still needs some work for the filtering to work properly; it should only filter out elements if they meet NO preferences! 2023-04-18 15:39:49 +02:00
denizk0461 c385da4287 Implemented chips for selecting dietary preferences 2023-04-18 10:25:45 +02:00
denizk0461 61822f1f45 Canteen content can now be displayed 2023-04-16 21:41:46 +02:00
denizk0461 5543eb4e32 Implemented canteen scraper/parser functionality 2023-04-16 18:19:06 +02:00