Archived
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.
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ import kotlinx.coroutines.runBlocking
|
||||
*
|
||||
* @param app reference to the app
|
||||
*/
|
||||
open class TemplateViewModel(app: Application) : AndroidViewModel(app) {
|
||||
open class AppViewModel(app: Application) : AndroidViewModel(app) {
|
||||
|
||||
// Reference to the app's repository for database transactions
|
||||
protected val repo: AppRepository = Dependencies.repo
|
||||
@@ -13,7 +13,7 @@ import com.denizk0461.studip.model.OfferDate
|
||||
*
|
||||
* @param app reference to the app
|
||||
*/
|
||||
class CanteenViewModel(app: Application) : TemplateViewModel(app) {
|
||||
class CanteenViewModel(app: Application) : AppViewModel(app) {
|
||||
|
||||
// Instantiate a parser, should the user want to refresh the canteen offers
|
||||
private val parser = StwParser()
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.denizk0461.studip.model.StudIPEvent
|
||||
*
|
||||
* @param app reference to the app
|
||||
*/
|
||||
class EventViewModel(app: Application) : TemplateViewModel(app) {
|
||||
class EventViewModel(app: Application) : AppViewModel(app) {
|
||||
|
||||
/**
|
||||
* Retrieves all Stud.IP events.
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.denizk0461.studip.model.StudIPEvent
|
||||
*
|
||||
* @param app reference to the app
|
||||
*/
|
||||
class FetcherViewModel(app: Application) : TemplateViewModel(app) {
|
||||
class FetcherViewModel(app: Application) : AppViewModel(app) {
|
||||
|
||||
/**
|
||||
* Save a list of Stud.IP events to persistent storage asynchronously.
|
||||
|
||||
Reference in New Issue
Block a user